标签: python datetime format match
无法看到格式不匹配的问题。
chDate = [] for value in sheet.iter_cols(min_row=2,min_col=6,max_col=6, values_only=True): chDate.append(str(value)) chDate = [datetime.strptime(d, "%Y-%m-%d %H:%M:%S") for d in chDate]
error output