python轰炸代码

import pyperclip  # 需要安装pyperclip库
import time
import keyboard  # 需要安装keyboard库


def main():
    str = "原神,启动!"  # 轰炸内容
    time.sleep(5)
    for j in range(50):  # 轰炸次数
        for str1 in str.split(","):
            pyperclip.copy(str1)
            keyboard.press_and_release('ctrl+v')
            keyboard.press_and_release('enter')
            time.sleep(0.1)


if __name__ == "__main__":
    main()

完善后的代码在github下载:https://github.com/ChenKangluit/Boom

posted @ 2023-11-01 22:35  敬畏虚空  阅读(232)  评论(0编辑  收藏  举报