python处理多层嵌套列表
def print_lol(the_list): for each_item in the_list: if isinstance(each_item,list): print_lol(each_item) else: print(each_item) movies=["the boy","the life of Brain",["we",["sers"],"Byes"]] movies.append("python"); movies.insert(1,"yyy"); print_lol(movies)
 
                    
                     
                    
                 
                    
                 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号