摘要:
1, How to check the python version import sys if sys.version_info < (3.0) print ("python version is 2.x") else: print ("python version is 3.x") 2, How 阅读全文
摘要:
为了不给Python3.0带入过多的累赘,Python 3.x没有考虑向下兼容 1,print 函数 print语句没有了,取而代之的是print()函数. Python2.7 print "fish" print ("fish") #注意print后面有个空格 print("fish") #pri 阅读全文