摘要:
names=["1","2",["3","4"]]def print_lol(the_list,level): for each_item in the_list: if isinstance(each_item,list): print_lol(each_item) else: for tab_stop in range(level): print("\t",end="") print(each_item)print_lol(names,2)上面的结果:12Tra... 阅读全文