更改元组值

  1. x = ("apple", "banana", "cherry")
  2. y = list(x)
  3. y[1] = "kiwi"
  4. x = tuple(y)
  5.  
  6. print(x)