Type/to search
0
Follow
0
Followers
Existe uma função de tempo?
Help
Created 2020-10-14 20:55:30  
 4
 1223

Senhoras e senhores, gostaria de perguntar se há algum arquivo que usa o tempo, por exemplo, se eu executar o equilíbrio de uma hora para deixar de negociar, e depois de uma hora para fazer isso. Por exemplo, inicializar automaticamente alguns parâmetros todos os dias de manhã cedo.

Related Recommendations
Comment
All comments (4)

    python有apscheduler库 ,可以精确指定分钟,小时换起一个def函数。或者指定间隔的分钟等换起。
    from apscheduler.schedulers.blocking import BlockingScheduler
    相关操作可以百度一下

    6 years ago

    好的,谢谢啊

    6 years ago

    定时的设计,在文库有文章可以参考:https://www.fmz.com/digest-topic/5942

    6 years ago

    自己记录时间戳,用Date,now(), 然后比较

    6 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)