小兄弟我第一次用python写程序想要pyautogui写个一键全自动截屏归档,档名从001增长的程序
import pyautoguiimport keyboardx = 0while keyboard.read_key("q"): //当按住电脑键盘Q时实行pyautogui.screenshot("test{x}.PNG",region=(409,221,305,442))// 这儿的档名会变为test{x}.PNGx = x 1if keyboard.read_key("w"): //当按住电脑键盘w时完毕break