发布时间:2019-08-15 10:07:36编辑:auto阅读(2238)
# -*- coding:utf-8 -*- # -Author: Paulliam - for i in range(5): print("---------",i) for j in range(10): print(j) if j>5: break #结束本次循环
##########运行结果:
"D:\Program Files\python-3.6.4\python.exe" "C:/Users/Administrator/Desktop/python-prj/for double.py"
--------- 0
0
1
2
3
4
5
6
--------- 1
0
1
2
3
4
5
6
--------- 2
0
1
2
3
4
5
6
--------- 3
0
1
2
3
4
5
6
--------- 4
0
1
2
3
4
5
6
Process finished with exit code 0
上一篇: python版js压缩工具
下一篇: Python3 搭建Qt5 环境
49904
49153
39826
36869
31259
28108
27058
21859
21794
20139
83°
78°
261°
280°
902°
1617°
1510°
1279°
2594°
1555°