一品网
  • 首页

python获取当前时间 格式


from datetime import datetime  now = datetime.now()   print(now.strftime('%Y-%m-%d'))   #2022-01-11 年月日 print(now.strftime('%Y-%m-%d %H:%M:%S'))  #2022-01-11 11:07:51  年月日 时分秒  
python学习

相关


python学习(十)函数 内容

selenium python学习笔记之八 窗口截图、验证码处理

python学习随笔day15

【python学习笔记】openpyxl操作excel高阶操作

Python学习之PIL库的使用

Python学习笔记-----类和对象知识点2)---类的继承

Python学习笔记-----类和对象知识点2)---类的继承

【Python学习笔记六】获取百度搜索结果以及百度返回“百度安全验证”问题解决

【Python学习笔记七】从配置文件中读取参数

【Python学习】 把list, tuple中的元素用write()方法写入文件

python学习day37笔记

python学习day35笔记

标签

一品网 冀ICP备14022925号-6