📜  如何在元组中附加值 - 无论代码示例

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

代码示例2
a = ('tree', 'plant', 'bird')
b = ('ocean', 'fish', 'boat')
# a and b are both tuples

c = a + b
# c is a tuple: ('tree', 'plant', 'bird', 'ocean', 'fish', 'boat')