python判断是否是零时
from datetime import datetime now = datetime.now() if now.hour == 0 and now.minute == 0 and now.second == 0: print("It's midnight!")
################################