import pyautogui as pag
import time
D = 900
for D in range(100):
pag.write(D)
pag.press("Enter")
D += 1
i want it to type untill its get to 1000
I believe the code you need is:
import pyautogui as pag
D = 900
while D < 1001
pag.typewrite(D)
pag.press('Enter')
D += 1
import pyautogui as pag
D = 900
while D < 1001
pag.typewrite(f"{D}")
pag.press('Enter')
D += 1
Int has to be string!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.