chat1
for index,
def infind_enum_by_prefix(input_string, enumerate(files, start=1)enum_class):
mod_timefor =member file.stat().st_mtimein enum_class:
formatted_timeif = time.strftime('%Y-%m-%d, %H:%M:%S', time.localtime(mod_time))input_string.startswith(member.value):
print(f"{index}.return {file.name}member
(modified: {formatted_time})")
return None