a = random.randint(1, 9999)
name = 'filename' + str(a * 7) + '.txt'
print '>>', a
ROOT = os.path.abspath(os.sep)
filepath = os.path.join(ROOT, name)
os.chdir(filepath)
file = open(filepath, 'w')
OSError가 표시됩니다. OSError : [Errno 2] 해당 파일이나 디렉토리가 없습니다. '/ Users/Downloads'txt 파일을 다운로드 디렉토리 (python, odoo)에 저장하는 방법
스크립트의 전체 출력을 표시 할 수 있습니까? – aydow