Skip to content

changhf/learn-python3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 3 教程

python2.x中的urllib2被改为python3中的urllib.request

reload(sys)被替换为 import importlib importlib.reload(sys)

异常:

Python 问题小记

1、unresolved reference 'unicode' 2、unresolved reference 'reload' 3、End of statement expected 在python3中使用 print(x) 代替 print x 4、unicode(sub, "UTF-8") python3中改为sub.decode("UTF-8") 4、python3中不需要sys.setdefaultencoding,默认编码时候unicode 也不需要unicode()

About

Learn Python 3 Sample Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%