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