def label_hh(min_num):
hours, minutes = divmod(min_num, 60)
timestamp = time(hour=hours, minute=minutes)
return time.strftime(timestamp, '%I %p')
# Given a minute number, return the 24-hour time label with just hours
评论列表
文章目录