摘要:
from apscheduler.schedulers.blocking import BlockingScheduler from datetime import datetime def test_tick(): print(f'time is {datetime.now()}') if __n 阅读全文
摘要:
python中的逻辑操作符and 和or,也叫惰性求值,由于是惰性,只要确定了值就不往后解析代码了。 and 两种用法: 表达式 exp1 and exp2:用法同java 的 && 字面量值 >>> a = '' and [] and None >>> a '' >>> a = 2 and '' 阅读全文