摘要: 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... 阅读全文
posted @ 2013-03-31 14:08 ilxx1988 阅读(2041) 评论(0) 推荐(0) 编辑