![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python基础
五六七呀
这个作者很懒,什么都没留下…
展开
-
python几个常用排序的练习
1234任意三个数字组合情况,不允许有相同的情况 b = s = g = 1 while b <= 4: s = 1 while s <= 4: g = 1 while g <= 4: if b != s and s != g and b != g: print(b,s,g) ...原创 2020-04-01 17:57:12 · 266 阅读 · 0 评论 -
python while for循环部分练习
打印乘法表 for循环 #99乘法 for i in range(1,10): for j in range(1,i+1): print('%d*%d=%d'%(i,j,i*j),end=' ') j += 1 i += 1 print() while循环 #99乘法 i = j = 1 while i <= 9...原创 2020-03-25 18:16:33 · 230 阅读 · 0 评论