![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
笨小孩000
这个作者很懒,什么都没留下…
展开
-
安装Scrapy报错: Microsoft Visual C++ 14.0 is required
添加链接描述You need to install Visual C++ Build tools form this link:https://visualstudio.microsoft.com/visual-cpp-b…Then restart your PC, then you also need to upgrade Python setup tools, by running th...原创 2019-07-16 12:16:43 · 161 阅读 · 0 评论 -
关于Tkinter
1.AttributeError: module ‘tkinter’ has no attribute ‘TK’import tkinter as tkapp = tk.TK()app.title('FishC Demo')theLabel = tk.Label(app,text='The second windows application')theLabel.pack()ap...原创 2019-07-24 18:32:47 · 100 阅读 · 1 评论 -
为什么相同的方法,在不同的组件,应用不同?
为什么有的方法在调用方法的时候,不能不写self,而有的可以???from tkinter import *root = Tk()def show(self): print('PJ') Scale(root,from_ = 0,to = 42,tickinterval = 5,length = 200,\ resolution = 5,orient = ...原创 2019-07-31 20:10:08 · 121 阅读 · 0 评论 -
关于“unresolved reference ‘mainloop’”的一些问题
转载自:https://www.jianshu.com/p/9555310f1920之前的代码都是在Jupter中编写的,这几天搬到PyCharm中来,各种不适应,主要的问题还是如题的问题,在导入库的时候当时敲代码都是可以的,然而在PyCharm中却一直报警告:Unresolved Reference …,于是开一篇记录这些奇葩的问题,其实这个问题不是奇葩,是我自己Python的功底不扎实…在...转载 2019-08-05 12:18:51 · 531 阅读 · 0 评论 -
urllib.error.URLError:urlopen error [WinError 10060]
基本是按照甲鱼老师的代码敲的,但是有报错。代码如下:import urllib.requesturl = 'http://www.ip138.com'proxy_support = urllib.request.ProxyHandler({'http':'1.198.73.139:9999'})opener = urllib.request.build_opener(proxy_supp...原创 2019-08-23 20:35:26 · 5341 阅读 · 3 评论 -
{"errorCode":50}爬取有道词典的翻译
将http://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule 中的"_o"去掉,改为如下链接即可’http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule’。我的代码:import urllib.requestimpor...原创 2019-08-21 20:44:31 · 359 阅读 · 0 评论