其他操作
lst = [["张艺谋", "冯小刚", "陈凯歌"], ["李安", "王家卫", "王晶"], ["周杰伦",["abc", "alex_wusir", ["胡辣汤", "c"]], "风扇哥"]] # print(lst[1][1][2]) # 把王晶换成"贾樟柯" # lst[1][2] = "贾樟柯" # print(lst) # $$$$$$$ # 降维操作 ["哈哈", "hehe", "houhou"] 一维 [[1,2,3], [12,4,5], [6,7,8]] 二维 # 数数 lst[2][1][1] = lst[2][1][1].replace("_", "$") print(lst)