python - ValueError: source code string cannot contain null bytes
天蓬老师
天蓬老师 2017-04-18 10:03:37
0
2
6739
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
伊谢尔伦

Use the following command to remove stations.pynull characters from the file. This may be introduced by an error in your text editor.

sed -i 's/\x0//g' <目标文件>

Here it is:

sed -i 's/\x0//g' stations.py

Additionally, considering that you are on a win system and there is no sed command; it is recommended that you copy the contents of the file to another place and then copy it back again.

Peter_Zhu

You can refer to here if you have similar questions

http://stackoverflow.com/ques...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template