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
更新中...
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
更新中...
1.while循環的格式 while 條件: 條件滿足時,做的事情1 條件滿足時,做的事情2 條件滿足時,做的事情3 ...(省略)... demo