会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
曹宝福
博客园
首页
新随笔
联系
订阅
管理
2022年2月14日
获取下一个月/年的日期
摘要: import datetime # 获取指定年前 年后 # 时间 操作 +- def getYer(date, option, number): # 把传递过来时间格式化成年 year = datetime.datetime.strftime(date, "%Y") # 用年默认为-操作 newye
阅读全文
posted @ 2022-02-14 09:46 曹宝福
阅读(201)
评论(0)
推荐(0)
公告