本文共 347 字,大约阅读时间需要 1 分钟。
安装模块:
1 | pip install pyautogui |
1 2 3 4 5 6 7 8 9 10 | import os,time import pyautogui as pag while True : print "Press Ctrl-C to end" x,y = pag.position() pos = "Position:" + str (x).rjust( 4 ) + ',' + str (y).rjust( 4 ) print pos time.sleep( 0.3 ) os.system( 'cls' ) print 'ending....' |
转载地址:http://yrqpo.baihongyu.com/