Python
向日葵-满天星
这个作者很懒,什么都没留下…
展开
-
urllib库python2和python3具体区别
urllib库python2和python3具体区别 Python 2 name Python 3 name urllib.urlretrieve() urllib.request.urlretrieve() urllib.urlcleanup() urllib.request.urlcleanup() urllib.q转载 2017-06-18 12:38:26 · 343 阅读 · 0 评论 -
Python3.x和Python2.x的区别
1.性能 Py3.0运行 pystone benchmark的速度比Py2.5慢30%。Guido认为Py3.0有极大的优化空间,在字符串和整形操作上可 以取得很好的优化结果。 Py3.1性能比Py2.5慢15%,还有很大的提升空间。 2.编码 Py3.X源码文件默认使用utf-8编码,这就使得以下代码是合法的: >>> 中国 = 'china'转载 2017-06-18 12:40:07 · 1005 阅读 · 0 评论