Python输入上课时间的总秒数,计算今天上课时间是多少小时多少分多少秒的方式表示出来

Python输入上课时间的总秒数,计算今天上课时间是多少小时多少分多少秒的方式表示出来

a = int(input())
h, m, s = a // 3600, a % 3600 // 60, a % 60
print(f'{h}小时{m}分钟{s}秒')

有帮助望采纳