📜  python 将连字符添加到字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:10.055000             🧑  作者: Mango

代码示例1
> import datetime
> datetime.datetime.strptime('20110503','%Y%m%d').date().isoformat()
'2011-05-03'
#with pandas
c['date'] =  pd.to_datetime(c['date'], format = '%Y%m%d')