【Python】python 日期、時間、字符串相互轉換

【我的筆記】python (1) 區分:strptime、strftimespa a="04/12/2014 06:08:55"unix a1 = datetime.datetime.strptime(a,"%d/%m/%Y %H:%M:%S")    # 將字符串a轉化爲datetime,用的是strptimecode a2 = datetime.datetime.strftime(a1,'%Y
相關文章
相關標籤/搜索