from pynput.keyboard import Key,Controller
import time
from random import choice
time.sleep(5)
keyboard_run = Controller()
def send():
# 按下
keyboard_run.press(Key.enter)
# 释放
keyboard_run.release(Key.enter)
def msg(a):
keyboard_run.type(a) # 输出文字
if __name__ == '__main__':
msg_list = ['xk','nkt','xyx','hd','gz','kb','ch','lengh','dk','xig','oh','fw','shui','shi','ws','ruo','qiang','yl','ty','bz','lw','xs','xin','dx','mg','fan','kf',
'hx','bb','zq','dao','zhd','shd','dg','ll','yb']
x = 0
while x<100:
msg('/'+choice(msg\_list)) # 输入
send() # 发送
x += 1
if x > 150:
break
print(x)
手机扫一扫
移动阅读更方便
你可能感兴趣的文章