摘要:
#作业2def printinfo(): print("-"*30)def numprint(num): i = 0 while i < num: printinfo() i += 1def addNums(a,b,c): return a + b +cdef averageNums(a,b,c): 阅读全文
摘要:
# 4、冒泡排序 以及反转 和 排序方法 升序和降序a = [-1,12,31,2,134,2345,2]for i in range(0,len(a)-1,1): for j in range(0,len(a)-1-i,1): if a[j] > a[j+1]: tem = 0 tem = a[j 阅读全文