import calendar #导入模块
nian=int(input(‘请输入年份’))
yue=int(input(‘请输入月份’))
print(calendar.month(nian,yue))

运行效果如下
python 万年历
关注作者会有更多it小知识更新!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2021-09-01
  • 2021-10-19
  • 2021-07-26
  • 2021-10-03
猜你喜欢
  • 2021-04-14
  • 2021-11-28
相关资源
相似解决方案