
python
cdh4869
真相只有一个……
展开
-
pip upgrade,“Read timed out.“
连接服务器超时,加个地址就行了python -m pip install --upgrade pip -i https://pypi.douban.com/simple原创 2022-01-19 14:21:30 · 701 阅读 · 0 评论 -
python--Tkinter学习笔记之Button
英文:The Tkinter Button WidgetTkinter Button 小部件Button小部件是用于实现各种按钮的标准Tkinter小部件。按钮可以包含文本或图像。可以将Python函数或方法与每个按钮关联, 按下按钮后,Tkinter会自动调用该函数或方法。该按钮只能以一种字体显示文本,但是文本可能会跨越多行。此外,可以在其中一个字符加下划线,例如标记键盘快捷...翻译 2020-03-05 01:51:02 · 733 阅读 · 0 评论 -
问题集----pycharm中安装pygame失败
问题:pycharm中安装pygame失败解决方法:下载国内代替的libs步骤:进入cmd,输入pythonC:\Users\chendh>pythonPython 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32Type "help", "co...原创 2020-02-25 22:55:54 · 4727 阅读 · 0 评论 -
Python GUI 问题集 ---- tkinter "ModuleNotFoundError: No module named 'Tkinter'"
问题:ModuleNotFoundError: No module named 'Tkinter'python2 原本写法:import Tkinterroot = Tkinter.Tk()root.mainloop()出现了错误: import TkinterModuleNotFoundError: No module named 'Tkinter'...原创 2020-02-25 17:14:16 · 606 阅读 · 2 评论 -
问题集----windows下更新pip源
使用默认的下载太慢了,更换成国内镜像源国内的镜像源清华:https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣:http://pypi.douban.com/simple 阿里:http://mirrors.aliyun.com/pypi/simple步骤:在系统盘找到用户目录 ,比如我的,C:\Users\chendh 新建目录pip,在pip...原创 2020-02-25 16:26:29 · 360 阅读 · 0 评论 -
问题集--pycharm中pip镜像源更改
一、问题:使用pycharm过程中的安装包及其之慢二、解决方法:更换成国内的镜像源清华:https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣:http://pypi.douban.com/simple 阿里:http://mirrors.aliyun.com/pypi/simple三、步骤:File --- Settings Project: ...原创 2020-02-25 16:12:32 · 1493 阅读 · 0 评论