📜  list.extend - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:36.845000             🧑  作者: Mango

代码示例1
# languages list
languages = ['French', 'English']

# another list of language
languages1 = ['Spanish', 'Portuguese']

# appending language1 elements to language
languages.extend(languages1)

print('Languages List:', languages)