跳到正文

个人记录

JC

Hty111约 1 分钟
原文
文章信息与版本

文章信息

发布
2024年8月9日
收录
2025年12月12日
更新
2026年11月14日
篇幅
约 1 分钟
获赞
1

版本

  1. v1当前

JC之自动发犇

Python
# python -m pip install pyautogui -i https://pypi.tuna.tsinghua.edu.cn/simple
from pyautogui import *
import time

print('请打开浏览器 www.luogu.com.cn 首页,缩放比例调为 100%,鼠标放在犇犇输入框中,将我的关注(犇犇)放在页面最下方。完成后按下回车。')
input()

content = input('输入内容:')

while True:
    click(250, 700)
    typewrite(content, interval=0.1)
    click(250, 750)
    time.sleep(5.0)   # 防止关不掉
原文