问题描述:
[单选]
字符串s的值为:"2020-01-01 00:00:00", 如何这样的时间格式转化为 "20200101000000"这样的格式?()?
A.datetime.strptime(s, "%Y-%m-%d %H:%M:%S").strftime("%Y%m%d%H%M%S")
B.datetime.strptime(s).strftime("%Y%m%d%H%M%S")
C.datetime.strptime(s, "%Y%m%d%H%M%S").strftime("%Y-%m-%d %H:%M:%S")
D.datetime.strptime(s).strftime( "%Y-%m-%d %H:%M:%S")
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
- 我要回答: 网友(3.139.72.250)
- 热门题目: 1.现场监护人对施工所用的器具设 2.现场监护人对作业过程中出现突 3.如发现在人触电,迅速辨明现场