摘要: l = [[1, 2], [3, 4], [5, [6, 7, [8, 9]]], 10, [11, [12, 13, [14, 15, [16]]]]] eval(re.sub("(?!^)\[|\](?!$)", "", str(l))) # 小小明 [int(i) for i in re.fi 阅读全文
posted @ 2022-06-05 11:20 HuaBro 阅读(38) 评论(0) 推荐(0) 编辑