总秒转换成时分秒

点击查看代码
total_seconds = int(input("输入总秒数:"))
hour = total_seconds // 3600
second = total_seconds % 60
minute = total_seconds // 60 % 60
print("时:", hour, "分:", minute, "秒:", second)

posted @ 2024-11-04 10:41  神仙不在  阅读(19)  评论(0)    收藏  举报