Gok*_*oku 2 python date-format
我试图将日期字符串转换为有效的日期 python 格式,但我得到了错误的日期:
>from datetime import datetime
>mydate = '300413' # is 2013-04-30
>print datetime.strptime(mydate,'%d%m%Y')
>0413-02-01 00:00:00
Run Code Online (Sandbox Code Playgroud)
如何解析为有效的日期(该日期字符串)?