源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  python 万年历

python 万年历

分类: 文章 • 2025-01-13 21:07:46

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

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

相关推荐

  • python之塔型魔方阵
  • python循环结构----python123.io
  • 数字炸弹游戏程序 用python来实现
  • python中的小数据池
  • python历练之路之(from exceptions import PendingDeprecati)异常的解决方案
  • python3入门——代码优化(工厂模式)
  • 京东全站数据采集之Python中Scrapy框架!很详细!
  • 利用au-to-py-to-exe 实现 pytorch深度学习、python内置GUI文件打包
  • python网络爬虫:抓取allitebooks.com书籍信息及ISBN码
  • 如何使用Python处理Missing Data
  • Android自定义View实现快速索引(如微信好友列表,通讯录)
  • 51单片机-液晶1602
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号