python keyboard模块使用笔记

**前言:之前写了一个脚本使用到了几个模块,就记录一下用到知识点的使用

keyboard模块:

wait函数:

#等待按下“t”键。
keyboard.wait('t')
#如果没有按下“t”键,则不会运行下面的代码:
print('hello world!')

threading模块:
threading.Thread继承threading.Thread的子类并复写run函数,实现多线程;

class qq(threading.Thread):
    def __init__(self):
       threading.Thread.__init__(self)
    def run(self):
       pass

你可能感兴趣的:(python)