2024-06-25 VS 2024/06/25

问答  收藏
2 / 376

image.png

节点: Python, Traceback (most recent call last): File ".api.py", line 39, in output = api() File ".api.py", line 34, in API new_datetime_str = add_random_time_to_datetime(end_date_str) File ".api.py", line 22, in add_random_time_to_datetime end_datetime = datetime.strptime(end_date_str + ' 00:00:00', '%Y-%m-%d %H:%M:%S') File "/usr/local/lib/python3.6/_strptime.py", line 565, in _strptime_datetime tt, fraction = _strptime(data_string, format) File "/usr/local/lib/python3.6/_strptime.py", line 362, in _strptime (data_string, format))ValueError: time data '2024/06/26 00:00:00' does not match format '%Y-%m-%d %H:%M:%S'