|
|

楼主 |
发表于 2015-5-5 13:15:34
|
显示全部楼层
还是木有用啊,
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from easygui import * #调用过了
>>> filesavebox()
'C:\\Users\\Administrator\\Desktop\\1'
>>> settingsFilename = os.path.join('E:','hello','world.txt')
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
settingsFilename = os.path.join('E:','hello','world.txt')
NameError: name 'os' is not defined
>>> import os #调用过了
>>> settingsFilename = os.path.join('E:','hello','world.txt')
>>> settings = Settings(settingsFilename)
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
settings = Settings(settingsFilename)
NameError: name 'Settings' is not defined #照样出错
>>> settingsFilename = os.path.join('E:','helloworld','test.txt')
>>> import sys
>>> settings = Settings(settingsFilename)
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
settings = Settings(settingsFilename)
NameError: name 'Settings' is not defined
难道因为版本问题?我的是3,4,3的
|
|