代码示例:(标识:python_set_loop)
python_set_loop.py
thisset = {"apple", "banana", "cherry"}

for x in thisset:
  print(x)
运行结果: