1. Background: python 3/win10
2.Error Line: import custom_python
- custom_python.py 是通过re.findall()返回的list强行转换成的dict
3. Solution
- 把custom_python.py用notepad打开后,保存被UTF-8(本来是unicode)
Posted break大蜗牛
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Trouble Shooting - Python] ValueError: source code string cannot contain null bytes相关的知识,希望对你有一定的参考价值。
1. Background: python 3/win10
2.Error Line: import custom_python
3. Solution
以上是关于[Trouble Shooting - Python] ValueError: source code string cannot contain null bytes的主要内容,如果未能解决你的问题,请参考以下文章