需求

把列表转成元组

确保数据的安全



示例


li = ["a","b","c"]

t = tuple(li)
print(t)
print(type(t))

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.