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
1.4m articles
1.4m replys
5 comments
57.0k users