<小知识>记录

it2022-05-05  108

lis = [2,3,"k",["qwe",20,["k1",["tt",3,"1"]],89],"ab","adv"] def p_list(lis): '''打印列表中所有元素''' for i in lis: if type(i)==list: p_list(i) else: print(i) p_list(lis)

  

转载于:https://www.cnblogs.com/shuimohei/p/10498874.html


最新回复(0)