自动画图

import pyautogui

import time

time.sleep(5)
pyautogui.click()
distance = 200

while distance > 0:
    pyautogui.dragRel(distance, 0, duration=0.2)
    distance = distance - 5
    pyautogui.dragRel(0, distance, duration=0.2)
    pyautogui.dragRel(-distance, 0, duration=0.2)
    distance = distance - 5
    pyautogui.dragRel(0, -distance, duration=0.2)
    
自动画图_第1张图片
自动绘制的图还控制的很准确

你可能感兴趣的:(自动画图)