发布于 1年前

Python 如何合并列表

list1 = [1, 2, 4]
list2 = ['XiaoF']
list1.extend(list2)

print(list1)
# [1, 2, 4, 'XiaoF']
©2020 edoou.com   京ICP备16001874号-3