- 博客(7)
- 问答 (2)
- 收藏
- 关注
原创 pip install web3遇到的几个问题(已解决)
pip install web3提示错误error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft VisualC++ Build Tools”: http://landinghub.visualstudio.com/visual-cpp-build-tools下载了很多都没用,最后依靠这个解决:链接:https://pan.baidu.com/s/19F4YurwwZ5A9WF5txzMZoQ 提取码:ka7q但是又
2021-11-25 15:25:53
1350
1
原创 pyqt/python中遇到lambda的小坑(已解决)
A类中有1,2 方法1方法为控制按钮控件connect到带参数的2方法,传递方式为lambdaB类中调用A类1方法,无效解决方式:使用from functools import partialpartial代替lambda,具体原理暂时未知
2020-07-25 13:05:32
465
原创 python快捷键注册
import keyboard # 监听键盘class key(object): def __init__(self): super(key, self).__init__() def test_a(self): print('a') def testing(self): keyboard.add_hotkey('f1', self.test_a) keyboard.add_hotkey('ctrl+alt'
2020-06-01 21:12:11
638
原创 pyqt窗口实现跟随Windows窗口移动并且一直在其前方的方法 (伪嵌入)
启动定时器检测记事本的位置大小和是否关闭 self.tmpHwnd = None self.checkTimer = QTimer(self, timeout=self.checkWindow) self.checkTimer.start(10) # 10毫秒比较流畅def checkWindow(self): # 查找 self.hwnd = win32gui.FindWindow('WTWindow', '窗口名字') if win32gui.Get
2020-05-25 01:32:22
907
2
原创 SetForegroundWindow 之前需要先激活他,比如输入一个按键
# shell = win32com.client.Dispatch('WScript.Shell') # shell.SendKeys('%') # win32gui.SetForegroundWindow(ceshi)
2020-05-25 00:18:48
310
原创 PIP更换国内镜像源,快捷指令
Windows下快捷搞定(按理说linux也可以的)pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U+pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simpleLinux下修改 ~/.pip/pip.conf (没有就创建一个文件夹及文件。文件夹要加“.”,表示是隐藏文件夹)内容如下:[global]index-url = https
2020-05-23 19:23:00
633
原创 centos7.4-8.0安装mysql出现的无法打开二进制文件解决
./mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize初始化数据库时出现如下错误 file: No such file or directory解决方法:For Redhat Linux 8 try this: sudo yum install libncurses*其余已试方法:yum install -y libaio
2020-05-23 18:20:42
4550
3
空空如也
正则表达式,在线采纳,时间优先
2021-05-17
python截取字符串问题(即时结题,代码无误,实时采纳)
2021-04-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人