蓝绝

博客园 首页 新随笔 联系 订阅 管理

 

#cmd  安装第三方模块

 

 

 #pycharm调用第三方模块

 

import  schedule                       #导入第三方模块
import  time
'''每3秒输出 ’哈哈--‘  休眠1秒,循环进行'''
def job():
    print('哈哈 -------')

schedule.every(3).seconds.do(job)       #每3秒输出 ’哈哈--‘
while True:
    schedule.run_pending()
    time.sleep(1)

 

posted on 2022-09-26 21:22  蓝绝  阅读(20)  评论(0)    收藏  举报