for 循环主要用来遍历列表、字符串、文件等进行操作,默认是循环到最后一个元素为止。
test=dict(a=1,b=2,c=3,d=4)
for i,j in test.items():
print(i,j)
返回结果:
a 1
b 2
c 3
d 4
for 循环主要用来遍历列表、字符串、文件等进行操作,默认是循环到最后一个元素为止。
test=dict(a=1,b=2,c=3,d=4)
for i,j in test.items():
print(i,j)
返回结果:
a 1
b 2
c 3
d 4
上一篇:5.2 if,while语句
Python中的循环语句(while循环/for循环)
puppet 简单介绍
对于有CAD模型,CAD模型右键“模型对齐”1.手动测量平面,直线,点。
修改视图
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M