my english is poor. please understand....
tt.py
def test():
world.Note('Hello Mushclient')
>> import tt
>> tt.test()
脚本错误
游戏: pkuxkx
执行 1 行 0 列
立即执行
Traceback (most recent call last):
File "<Script Block 4>", line 1, in <module>
tt.test()
File "D:\MUSHclient\tt.py", line 2, in test
world.Note('Hello Mushclient')
NameError: global name 'world' is not defined
出错行:
tt.test()
>> execfile('tt.py')
>> tt.test()
Hello Mushclient
please tell me about import wrong .....thank you
tt.py
def test():
world.Note('Hello Mushclient')
>> import tt
>> tt.test()
脚本错误
游戏: pkuxkx
执行 1 行 0 列
立即执行
Traceback (most recent call last):
File "<Script Block 4>", line 1, in <module>
tt.test()
File "D:\MUSHclient\tt.py", line 2, in test
world.Note('Hello Mushclient')
NameError: global name 'world' is not defined
出错行:
tt.test()
>> execfile('tt.py')
>> tt.test()
Hello Mushclient
please tell me about import wrong .....thank you