Skip to content

lovexleif/python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python

learn python

读取写入操作时,遇到问题 UnicodeDecodeError: ‘gbk’ codec can’t decode

解决办法 二进制打开,解码成utf-8,如: fp = open(filename,'rb') content = fp.read().decode('utf-8')

About

learn python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages