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

李金龙
李金龙
管理员
511
文章
0
粉丝
Python习题Python简单计算一年有多少小时、分钟、秒已关闭评论18,67318字数 56阅读模式
  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简单计算一年有多少小时、分钟、秒

 
李金龙
  • 本文由 李金龙 发表于2017年2月19日 14:36:22
  • 转载请务必保留本文链接:https://www.lijinlong.cc/python/pyxt/1269.html
Python习题

python小工具,通讯录小程序

通讯录小程序代码要求 要求,查找、增加、修改、删除、退出等常规通讯录使用   通讯录小程序代码实例 print('|---欢迎进入李金龙通讯录程序---|') print('|---1:查询...