问题 In time column, there are values like: Time ======== 59:47 59:52 59:53 59:55 1:00:01 1:00:03 1:00:12 Now, I need to reshape the values like hh:mm:ss I have tried something like this: time_list = df7['Time'].tolist() for i in time_list: print(datetime.strptime(i,'%H:%M:%S')) ValueError: time data ' 36:21' does not match format '%H:%M:%S' 回答1: If you can normalise your values to always be of the form mm:ss or hh:mm:ss , with no additional components to them, then it's as simple as doing