課程
/Cocos2d-x
/Cocos2d-x游戲開(kāi)發(fā)之貪吃蛇(上)
老濕,importError:no module named“ConfigParser”怎么破?
2016-02-19
源自:Cocos2d-x游戲開(kāi)發(fā)之貪吃蛇(上) 2-2
正在回答
就我所知 python 3.2 以后的版本中 ,應(yīng)當(dāng)使用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.
舉報(bào)
貪吃蛇都玩過(guò)~有沒(méi)有想過(guò)自己實(shí)現(xiàn)呢,一起學(xué)習(xí)來(lái)吧
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-05-05
就我所知 python 3.2 以后的版本中 ,應(yīng)當(dāng)使用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.