![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python习题
婷不苦
啥也不会,啥都要学,一点一滴~~
展开
-
作业一:五个数: 12, 35, 99, 18, 76, 从大到小排序
def fun_sort(lists): count = len(lists) for i in range(0,count): for j in range(i+1,count): if lists[i] < lists[j]: ''' ...原创 2018-10-15 14:39:08 · 264 阅读 · 0 评论 -
作业二:有1,2,3,4个数字,能组成多少个互不相同且无重复数字得三位数
count = 0 for x in range (1,5): for y in range(1,5): for z in range(1,5): if (x != y) and (y != z ) and (z != x ): count = count +1 print('%...原创 2018-10-15 14:39:53 · 338 阅读 · 0 评论