发布于 2年前 Python 如何合并列表 list1 = [1, 2, 4] list2 = ['XiaoF'] list1.extend(list2) print(list1) # [1, 2, 4, 'XiaoF']