摘要:
python模拟按键 pip install pypiwin32安装库 import win32conimport win32apiimport time 导入 打个比方模拟A win32api.keybd_event(65,0,0,0) #按下 time.sleep(0.1) #延迟一会儿 win 阅读全文
摘要:
键盘按键和键盘对应代码表:A < > 65 B < > 66 C < > 67 D < > 68 E < > 69 F < > 70 G < > 71 H < > 72 I < > 73 J < > 74 K < > 75 L < > 76 M < > 77 N < > 78 O < > 79 P 阅读全文
摘要:
打印出三位水仙花数方法及解释num = 100while num <= 999: #这里num 小于等于999 则运行 填1000也可以 a = num % 10 #num对10取余 b = num // 10 % 10 #num对10取整在取余 c = num // 100 #num对100取整 阅读全文