## 用for循环遍历A = {'1','2','star'} for item in A: print(item,end='')
## 用while循环遍历A = {'1','2','star'} try: while True: print(A.pop(),end='') except: pass