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)
标签:import python class notepad 保存 bytes error: str ann
1. Background: python 3/win10
2.Error Line: import custom_python
3. Solution
[Trouble Shooting - Python] ValueError: source code string cannot contain null bytes
标签:import python class notepad 保存 bytes error: str ann
原文地址:https://www.cnblogs.com/break-dawnn/p/8282308.html