avatar
j*a
1
有没有定时器那样的东西,定时执行一个函数的。pexpect看了不行
tcl的expect就有一个timeout {}的玩意儿。
avatar
b*n
2
kron

【在 j*a 的大作中提到】
: 有没有定时器那样的东西,定时执行一个函数的。pexpect看了不行
: tcl的expect就有一个timeout {}的玩意儿。

avatar
r*t
3
use threading, make a loop that calls a callable every some minutes.
avatar
b*n
4
python threading is not real thread. I had a lot problem with it.

【在 r****t 的大作中提到】
: use threading, make a loop that calls a callable every some minutes.
avatar
d*q
5
python thread is exactly a real thread
hwoever it is restricted to GIL
python interpreter allow only one thread running at any time.

【在 b******n 的大作中提到】
: python threading is not real thread. I had a lot problem with it.
avatar
b*n
6
I don't know what is a real thread. Python thread is fake. In real life, blo
cking one thread will not block other thread. In python, it will block every
thing.

【在 d***q 的大作中提到】
: python thread is exactly a real thread
: hwoever it is restricted to GIL
: python interpreter allow only one thread running at any time.

avatar
c*x
7
read the date time, then you know how to do the rest....
avatar
r*t
8
no way!!!!
block one python thread, 当然不会block any other python
thread,要不还怎么叫thread?

blo
every

【在 b******n 的大作中提到】
: I don't know what is a real thread. Python thread is fake. In real life, blo
: cking one thread will not block other thread. In python, it will block every
: thing.

avatar
r*t
9
用twisted:
reactor.callLater(delay, func)
然后在func里面载接着call reactor.callLater就行了。

【在 j*a 的大作中提到】
: 有没有定时器那样的东西,定时执行一个函数的。pexpect看了不行
: tcl的expect就有一个timeout {}的玩意儿。

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。