首页 > 编程语言 > 详细

[Trouble Shooting - Python] ValueError: source code string cannot contain null bytes

时间:2018-01-14 10:45:39      阅读:851      评论:0      收藏:0      [点我收藏+]

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)

 

[Trouble Shooting - Python] ValueError: source code string cannot contain null bytes

原文:https://www.cnblogs.com/break-dawnn/p/8282308.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!