## 用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
文章标签 python遍历dict for循环 while循环 文章分类 Python 后端开发
## 用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
Python基础知识
Java中遍历Map集合常用的几种方法。
java遍历map集合哪种方式最快
python 遍历turple python 遍历dict
遍历字典 keys() values() items()集合 不同点 集合只能存储不可变对象 集合中存储的元素是无序的 集合不能出现重复的元素 set() ad
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M