Python2到Python3经常遇到的问题汇总
2013-06-06 00:26
302 查看
1、Python2中:from ConfigParser import ConfigParser
Python3中:from configparser import ConfigParser
2、Python2中->Python3 :print ('Hello World'') 也就是要加括号
3. Python2中抓取网页用 import urllib2 Python中 import urllib.request
更新中...
Python3中:from configparser import ConfigParser
2、Python2中->Python3 :print ('Hello World'') 也就是要加括号
3. Python2中抓取网页用 import urllib2 Python中 import urllib.request
更新中...
相关文章推荐
- Python中遇到的小问题及解决方法汇总
- centos 6.5 升级python到python 2.7.6出现的问题及解决方法汇总[经常更新]
- 薪资管理模块,经常会遇到的40几个问题汇总
- android开发中经常遇到的问题汇总
- python3环境下 tensorflow环境中经常遇到'*' has type str, but expected one of: bytes问题的解决
- python安装scikit-learn遇到问题汇总
- android开发中经常遇到的问题汇总
- 薪资管理模块,经常会遇到的40几个问题汇总
- CentOS 6.3+Python 2.7.10安装pycurl遇到的问题汇总
- 薪资管理模块,经常会遇到的40几个问题汇总
- android开发中经常遇到的问题汇总
- android开发中经常遇到的问题汇总
- 薪资管理模块,经常会遇到的40几个问题汇总
- Python安装numpy,matplotlib,scikit_learn遇到的问题大汇总
- 薪资管理模块,经常会遇到的40几个问题汇总
- Python 2.7.10安装pycurl遇到的问题汇总
- python3环境下 tensorflow环境中经常遇到'*' has type str, but expected one of: bytes问题的解决
- 最近遇到的几个python问题汇总
- python初学遇到的问题汇总
- Python 语言使用中遇到的问题汇总