#输出指定格式日期
import datetime
if __name__ == '__main__':
#输出今日日期
print(datetime.date.today().strftime('%d%m%Y'))
#创建日期对象
BirthDate = datetime.
python#输出指定格式日期
最新推荐文章于 2024-06-05 16:01:11 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#输出指定格式日期
import datetime
if __name__ == '__main__':
#输出今日日期
print(datetime.date.today().strftime('%d%m%Y'))
#创建日期对象
BirthDate = datetime.