names=['a','b',['aha',[['lucy','lily']]]
遍历这个列表
def print_list(this_list);
for name in this_list:
if isinstance(name ,list):
print_list(name )
else :
print(name)`
>>> print_list(names)
即可
2023-12-17 10:38:39
names=['a','b',['aha',[['lucy','lily']]]
遍历这个列表
def print_list(this_list);
for name in this_list:
if isinstance(name ,list):
print_list(name )
else :
print(name)`
>>> print_list(names)
即可