## 用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

 

posted on 2020-03-30 22:45  BillGates--  阅读(8590)  评论(0)    收藏  举报