上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页

2018年2月1日

sublime text 3安装Anaconda插件之后写python出现白框

摘要: sublime test 3安装anaconda插件之后写python代码会出现白框,这是应为anaconda自带了pep8语法检查, 有一些是语法错误,能够检查出来还是能有用的。但有一些不过是一些代码规范问题,如果你只是想自己学点python而并非做项目的话,白框框到这种情况已经严重影响我码代码的 阅读全文

posted @ 2018-02-01 10:55 枝桠 阅读(3556) 评论(0) 推荐(0) 编辑

2018年1月30日

在tkinter中使用matplotlib

摘要: 编译显示UserWarning: This call to matplotlib.use() has no effect because the backend has alreadybeen chosen; matplotlib.use() must be called *before* pyla 阅读全文

posted @ 2018-01-30 15:01 枝桠 阅读(3586) 评论(0) 推荐(0) 编辑

2018年1月24日

RemoteDisconnected: Remote end closed connection without response

摘要: 爬智联招聘数据时候报错:“RemoteDisconnected: Remote end closed connection without response” 利用 urllib 发起的请求,UA 默认是 Python-urllib/3.5 而在 chrome 中访问 UA 则是 User-Agen 阅读全文

posted @ 2018-01-24 18:41 枝桠 阅读(2794) 评论(0) 推荐(0) 编辑

object of type 'Response' has no len()

摘要: 看见没,这里括号弄错了! 网上解释是requests.get()得到的是一个response对象,无法用BeautifulSoup解析,如果要解析,解析对象应该是requests.get().content,html = requests.get('http://www.jianshu.com'). 阅读全文

posted @ 2018-01-24 16:21 枝桠 阅读(3381) 评论(0) 推荐(1) 编辑

2018年1月4日

matploylib之热力图

摘要: 刚学我也不熟,做个笔记吧 效果图: 阅读全文

posted @ 2018-01-04 20:24 枝桠 阅读(528) 评论(0) 推荐(0) 编辑

2017年12月19日

pycharm格式化python代码快捷键Ctrl+Alt+L失效

摘要: 突然发现按Ctr+Alt+L格式化python失效了,下午时候还好好的。看网上得说法是因为开着的其他软件里用了全局快捷键Ctr+Alt+L,我的是因为被网易云音乐占用了,所以在网易云音乐里把这个快捷键删掉或者改掉就好了 阅读全文

posted @ 2017-12-19 23:41 枝桠 阅读(8236) 评论(1) 推荐(5) 编辑

python3.6:AttributeError: 'generator' object has no attribute 'next'

摘要: 环境:PyCharm+Anaconda python版本:3.6 协程测试: 编译报错: 原因:在python 3.x中 generator(有yield关键字的函数则会被识别为generator函数)中的next变为__next__了,next是python 3.x以前版本中的方法 阅读全文

posted @ 2017-12-19 18:03 枝桠 阅读(2919) 评论(0) 推荐(0) 编辑

【转】modulenotfounderror: no module named 'matplotlib._path'问题的解决

摘要: 今天在装matplotlib包的时候遇到这样的问题,在网上找了很长时间没有类似很好的解决方法,最后自己 研究找到了解决的方法。 之前在pycharm里面已经装了matplotlib包,之后觉着下载包挺麻烦(还要考虑包之间的依赖关系,实话说吧本人就是懒^=^)就直接下载了Anaconda,它直接将所有 阅读全文

posted @ 2017-12-19 12:27 枝桠 阅读(11402) 评论(0) 推荐(0) 编辑

2017年12月9日

虚存管理数据结构图

摘要: 阅读全文

posted @ 2017-12-09 11:05 枝桠 阅读(173) 评论(0) 推荐(0) 编辑

2017年11月30日

sublime中使用插件anaconda而在代码中出现方框

摘要: 这个标志是说不符合PEP8标准,比如使用了Tab做缩进;一行过长等问题。 可以在可以在 Sublime > Preferences > Package Settings > Anaconda > Settings User 中设置关闭: {“anaconda_linting”: false} 阅读全文

posted @ 2017-11-30 20:38 枝桠 阅读(269) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页

导航