課程
/Cocos2d-x
/Cocos2d-x游戲開發之貪吃蛇(上)
老濕,importError:no module named“ConfigParser”怎么破?
2016-02-19
源自:Cocos2d-x游戲開發之貪吃蛇(上) 2-2
正在回答
就我所知 python 3.2 以后的版本中 ,應當使用import configparser如果是python 2.7 使用為 import ConfigParser
The ConfigParser module has been renamed to configparser inPython 3. ?The 2to3 tool will automatically adapt imports whenconverting your sources to Python 3.
舉報
貪吃蛇都玩過~有沒有想過自己實現呢,一起學習來吧
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-05-05
就我所知 python 3.2 以后的版本中 ,應當使用import configparser
如果是python 2.7 使用為 import ConfigParser
The ConfigParser module has been renamed to configparser in
Python 3. ?The 2to3 tool will automatically adapt imports when
converting your sources to Python 3.