I m试图过滤从C.csv档案中检索的一个日期,但我似乎没有尝试合并。 日期为“2011-10-01 19:25:01”或“年月:分钟:无”。
I want just the year, month and date but I get can t seem to get ride of the time from the string:
date = bug[2] # Column in which the date is located
date = date.replace( " , ) #getting rid of the quotations
mdate = date.replace( : , )
re.split( $[d]+ ,mdate) # trying to get rid of the trailing set of number (from the time)
提前获得咨询意见。