社区
脚本语言
帖子详情
python
注册ID
2015-04-03 04:42:58
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
提示:
Undefined variable from import: setdefaultencoding
但是可以正常执行,求怎么才能把这个提示给去掉
...全文
282
4
打赏
收藏
python
import sys reload(sys) sys.setdefaultencoding('utf-8') 提示: Undefined variable from import: setdefaultencoding 但是可以正常执行,求怎么才能把这个提示给去掉
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
nieoding
2015-04-10
打赏
举报
回复
对于强迫症患者:
可以通过eclipse的系统设置里面改掉该提示
Bird_1989
2015-04-09
打赏
举报
回复
你先在终端或者cmd里面看看python 中能不能调用,会不会报错 AttributeError: 'module' object has no attribute 'setdefaultencoding'或者ImportError: cannot import name setdefaultencoding 这说明你的python无法引用这个模块
惟愿莲心不染尘
2015-04-09
打赏
举报
回复
你用的编辑器没有识别到这个方法
小雷同学
2015-04-08
打赏
举报
回复
python2.5以后再初始化完成以后会删除掉 setdefaultencoding方法的,所以,你想要调用就要重新加载,即reload(sys), 但是你那个编辑器对python的支持性可能不是很好,他不识别动态加载过来的方法。可以不去管它,或者你可在编辑器上忽略掉这个错误。
Python
For Data Analysis (2013)高清完整PDF版
Python
for Data Analysis 2013 pdf is concerned with the nuts and bolts of manipulating, processing, cleaning, and crunching data in
Python
. It is also a practical, modern introduction to scientific computing in
Python
, tailored for data-intensive applications. This is a book about the parts of the
Python
language and libraries you’ll need to effectively solve a broad set of data analysis problems. This book is not an exposition on analytical methods using
Python
as the implementation language.
learn-
python
-the-hard-way中文版
learn-
python
-the-hard-way中文版,o基础学习
python
!||随手上传是种美德
Python
3.2.3官方文档(中文版)高清完整PDF
Python
3.2.3官方文档(中文版) 由笔者自己翻译,有不当之处希望在博客上相互交流
pywin32 for
python
2.7 32位和64位
windows 运行
python
必备, 需要根据自己的操作系统选择32位或64位
python
python
3.4.1 64位
python
截止到2014.7.7,最新的64位
python
3.4.1。
脚本语言
37,741
社区成员
34,213
社区内容
发帖
与我相关
我的任务
脚本语言
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
复制链接
扫一扫
分享
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
试试用AI创作助手写篇文章吧
+ 用AI写文章