^^^^^^^^^^^^^^^^ ^^^^^^
Ошибка ОС: [Errno 22] Неверный аргумент
мой код
Код: Выделить всё
def Get_Line_Time_s(line):
time_format = "%m-%d %H:%M:%S.%f"
dt = datetime.strptime(line[:18], time_format)
return dt
end_time = Get_Line_Time_s(line)
print(end_time)
start_time = Get_Line_Time_s(pre_line)
duration_List.append(float("%.3f" % (end_time.timestamp() - start_time.timestamp())))
Подробнее здесь: https://stackoverflow.com/questions/793 ... d-argument
Мобильная версия