open file format

1. The storage language of the hard disk is the language that was opened

2. The format selected by pycharm is often inconsistent with the hard disk format, so it needs to be transcoded, as shown below:

a=open( ' test ' ,encoding= ' utf-8 ' )
b=a.read()
print(b)

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325428844&siteId=291194637