我發現它是:
>>> import sys
>>> help(sys)
...
DATA
__stderr__ = <open file '<stderr>', mode 'w' at 0x110029140>
__stdin__ = <open file '<stdin>', mode 'r' at 0x110029030>
__stdout__ = <open file '<stdout>', mode 'w' at 0x1100290b8>
api_version = 1013
argv = ['']
builtin_module_names = ('__builtin__', '__main__', '_ast', '_codecs', ...
byteorder = 'big'
copyright = 'Copyright (c) 2001-2009 Python Software Foundati...ematis...
dont_write_bytecode = False
exc_value = TypeError('arg is a built-in module',)
exec_prefix = '/usr/bin/../../opt/freeware'
executable = '/usr/bin/python_64'
這是不可靠的嵌入式翻譯,使用'os .__ file__'(禮貌http://stackoverflow.com/a/8187027/14420) – 2013-03-26 20:25:12
它實際上是'os .__ file__'上的一個目錄 – denfromufa 2016-03-14 02:50:15