这是我的代码:
import os
import time
import pyautogui
var = 1
time.sleep(1)
while var < 90:
var = var + 1
pyautogui.press('>')
time.sleep(1)
pyautogui.press('enter')
我需要输入它
>
>>
>>>
>>>>
答案 0 :(得分:0)
您可以使用typewrite():
import time
import pyautogui
var = 1
charr = '>'
time.sleep(1)
while var < 90:
pyautogui.typewrite(charr)
pyautogui.press('enter')
charr += '>'
var += 1
time.sleep(1)
输出:
>
>>
>>>
>>>>