主页
Python
Python 元组
demo_tuple_change
运行 ❯
×
更改方向
保存代码
更改主题
x = ("apple", "banana", "cherry") y = list(x) y[1] = "kiwi" x = tuple(y) print(x)
("apple", "kiwi", "cherry")