效果
![在这里插入图片描述](https://img-blog.csdnimg.cn/9c11791cc21a4b3b92273ca16b65270d.gif#pic_center)
代码
import time
import pyautogui
"""
功能:
自动解锁屏
自动检索CSDN
自动跳转到签到页面并签到
问题:
图像找不到,需要重新截图或尝试到图片目录刷新一下
"""
csdn_img_path = r'E:\picture\csdnautosign\csdn.png'
phone_title_path = r'E:\picture\csdnautosign\phonetitle.png'
return_img_path = r'E:\picture\csdnautosign\ret.png'
my_page_path = r'E:\picture\csdnautosign\mypage.png'
my_page_path1 = r'E:\picture\csdnautosign\mypage1.png'
sign_img_path = r'E:\picture\csdnautosign\sign.png'
sign_btn_path = r'E:\picture\csdnautosign\sign_btn.png'
time.sleep(3)
def is_pos(img_path):
pos = pyautogui.locateOnScreen(img_path)
fname = img_path.split('\\')[-1]
if pos !=