星期一, 十二月 10, 2012

使用2to3将代码移植到Python 3

重新安装了python3.3和PyQt,结果在IDLE中的第一个"print 'hello world'"就出错,网上一搜原来是python3的缘故,python3中修改成了"print('hello world')"顺便把这个地址记录一下:
http://woodpecker.org.cn/diveintopython3/porting-code-to-python-3-with-2to3.html

没有评论: