我正在执行数据处理,并且必须一次处理大量数据。没有文件,只有我粘贴到记事本中并使用pyautogui操作的文本
我只需要检查正在处理的当前行的文本,如果为空白,则while循环结束,如果不为空白,则循环重复。应该很容易做到,但是我不知道如何检查行中的文本。我在下面提供了我的代码:
import os
import subprocess
import time
import pyautogui
import ctypes
ctypes.windll.user32.SetCursorPos(1373,-550)
pyautogui.click()
time.sleep(1)
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["down"])
pyautogui.hotkey('shift','end')
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])
pyautogui.hotkey('shift','end')
pyautogui.typewrite(["delete"])
pyautogui.typewrite(["delete"])