Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些数学计算,结果我有一些整数分钟。现在我需要帮助将此整数转换为这种格式hh:mm:ss尝试使用日期时间但没有成功。
hh:mm:ss
NUM = 594.15
转换的预期输出:
9:54:09
import datetime print datetime.timedelta(minutes=594.15)
应该做你想做的