Python에서 임시 디렉토리를 가져오는 크로스 플랫폼 방법 Python 2.6의 디렉토리에 대한 경로를 얻을 수 있는 크로스 플랫폼 방법이 있습니까? 예를 들어 Linux에서는 다음과 같습니다./tmp(XP의 경우)C:\Documents and settings\[user]\Application settings\Temp.임시 파일 모듈입니다. 임시 디렉토리를 가져오는 기능이 있으며, 이름 지정 또는 이름 없는 임시 파일 및 디렉토리를 만드는 단축키도 있습니다. 예: import tempfile print tempfile.gettempdir() # prints the current temporary directory f = tempfile.TemporaryFile() f.write('something on..