Python2到Python3經常遇到的問題彙總

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

 

更新中...

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章