摘要:
一、string time datetime之间的相互转换1、string->time>>> time.strptime('2012-08-04', '%Y-%m-%d')time.struct_time(tm_year=2012, tm_mon=8, tm_mday=4, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=5, tm_yday=217, tm_isdst=-1)2、time->string>>> import time#方法1>>> time.strf 阅读全文