#先下载pyautogui库,pip install pyautogui -i https://mirrors.aliyun.com/pypi/simple/ import os,time import pyautogui as pag try: while True: x,y = pag.position() #返回鼠标的坐标 posStr
转载 2023-06-16 19:50:27
178阅读
很简单的代码,直接贴代码:import os, time import pyautogui as pag try: while True: print("按下Ctrl + C 结束程序") # pag.position()返回鼠标的坐标 x, y = pag.position() posStr = "当前鼠标位置:" +
转载 2020-03-24 10:32:00
181阅读
mid:等于delphi中的COPY举例str="123456"mid(str,2,1)的意思是在str字符串中从第2个字符开始取得一个字符,结果为2注意:下标是从1开始,而不是从0开始。instr:等于delphi中的POSstr="123456"instr(str, '3')意思是在str中的位...
原创 2021-07-21 13:51:35
199阅读