【发布时间】:2022-02-03 05:00:06
【问题描述】:
我需要两件事情发生:1)一些事情不断发生; 2)时机成熟时会发生一些事情,例如:
while True:
print('nothing happening')
if 5_seconds_passed:
print('five seconds passed')
我希望输出是这样的:
...
nothing happening
nothing happening
nothing happening
nothing happening
five seconds passed
nothing happening
nothing happening
...
【问题讨论】: