0

This is my code

import datetime
str = "2020-12-24 14:05:56.449122"
e = datetime.datetime.strptime(str, '%y-%m-%d %H:%M:%S.%f')
print(e)

It shows this error--

time data '2020-12-24 14:05:56.449122' does not match format '%y-%m-%d %H:%M:%S.%f

Barmar
  • 741,623
  • 53
  • 500
  • 612

0 Answers0