lst=[1,2] >>>[1,2] lst.append([3,4]) >>>[1, 2, [3, 4]] lst.extend([3,4]) >>>[1, 2, 3, 4]
Python.append()与Python.expand()的区别
原文:https://www.cnblogs.com/alex3174/p/11143090.html