技术笔记---记载学到技术的点点滴滴
Division and Reminder
total_secs=7350
hours=total_secs//3600 # hours=2
secs_still_remaining=total_secs%3600 # secs_still_remaining=150
minutes= secs_still_remaining // 60 # minutes=2
secs_finally_remaining=secs_still_remaining %60 # seconds=30
发表评论
没有评论:
发表评论