python 怎么判断时间戳为整点 (比如01:00:00)
1.
if timestamp % 3600 == 0: do something...
2.
from datetime import datetime timestamp = 1591239600 dt = datetime.fromtimestamp(timestamp) if dt.minute==0 and dt.second==0: do something
2.1m questions
2.1m answers
60 comments
57.0k users