def print_list(the_list,indent=False,level=0):
for each_line in the_list:
if isinstance(each_line,list):
print_list(each_line,indent,level+1)
else:
if indent:
for tab_stop in range(level):
print(‘\t‘,end=‘‘)
print(each_line)
时间: 2024-12-28 01:05:10