PythonAPI使用总结代码
来源:动视网
责编:小采
时间:2020-11-27 14:25:44
PythonAPI使用总结代码
PythonAPI使用总结代码:这篇文章介绍Python API使用总结代码datetimedatetime.date.today().strftime("%Y/%m/%d") new_date = datetime.date(1945, 8, 15) new_date + datetime.timedelta(days=,minuts=,microseco
导读PythonAPI使用总结代码:这篇文章介绍Python API使用总结代码datetimedatetime.date.today().strftime("%Y/%m/%d") new_date = datetime.date(1945, 8, 15) new_date + datetime.timedelta(days=,minuts=,microseco

这篇文章介绍Python API使用总结代码
datetime
datetime.date.today().strftime("%Y/%m/%d")
new_date = datetime.date(1945, 8, 15)
new_date + datetime.timedelta(days=,minuts=,microseconds=) # 修改方法之一
new_date.replace(month=new_date.month+1, day=, year=) # 修改方法之二
PythonAPI使用总结代码
PythonAPI使用总结代码:这篇文章介绍Python API使用总结代码datetimedatetime.date.today().strftime("%Y/%m/%d") new_date = datetime.date(1945, 8, 15) new_date + datetime.timedelta(days=,minuts=,microseco