Python简单计算一年有多少小时、分钟、秒

  • A+
所属分类:Python习题
  1. # 计算一年有多少小时,多少分钟,多少秒
  2. Year = 365
  3. Hour = Year *24
  4. Minute =  Hour * 60
  5. Second = Minute * 60
  6. print('一年有',Year,'天',Hour,'小时',Minute,'分钟',Second,'秒')

一年有 365 天 8760 小时 525600 分钟 31536000 秒

Python简单计算一年有多少小时、分钟、秒

李金龙

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: