One for all,all for one.
2012年7月16日 星期一
NameError: name 'exit' is not defined
python code 裡使用 exit() 函式,在使用 py2exe 轉換執行後,出現 NameError: name 'exit' is not defined
解法:
使用 sys.exit() 替代
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言