这里是一个渴求知识的编程小白。。
今天刚接触图形用户界面程序设计,我下载了wxPython,拷贝了一段代码想试试,结果运行不出来。
英文我都看得懂,但是因为GUI对我是个新概念,所以我不太懂问题出在哪里……
感恩!
报错图片
代码主体
PHP中文网2017-04-18 09:21:19
if __name__ == '__main__':
There should be two underscores here
and the __init__
above, these are special methods of python
高洛峰2017-04-18 09:21:19
line3: _init_ --> __init__
line12: _name_ --> __name__
_main_ --> __main__