首页 > 其他 > 详细

AttributeError: module 're' has no attribute 'search'

时间:2016-11-26 03:15:18      阅读:431      评论:0      收藏:0      [点我收藏+]

命名py脚本时,不要与python预留字,模块名等相同,即Python文件名不要使用Python系统库的名字,就是因为使用了Python系统库的名字,所以在编译的时候才会产生.pyc文件。正常的Python文件在编译运行的时候是不会产生.pyc文件的!

这类问题的解决方法则是:更改python脚本的命名,不要与python系统库重合即可

AttributeError: module 're' has no attribute 'search'

原文:http://www.cnblogs.com/fangxx/p/xx-python02.html

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