摘要:
Exercise: Solution: def sum_array(arr): if arr: #判断序列是否 为 空 :if arr > TRUE 不是空序列 if len(arr) > 2: # 序列是否存在两个以上的 元素 arr.remove(max(arr)) arr.remove(min 阅读全文
posted @ 2022-06-30 21:02
大序列
阅读(43)
评论(0)
推荐(0)
摘要:
Exercise: Solution: def count_by(x, n): return list(range(x, x * n +1, x)) 阅读全文
posted @ 2022-06-30 17:26
大序列
阅读(36)
评论(0)
推荐(0)
摘要:
Exercise: Solution: 1. def reverse words (text) t = text[-1::-1] t2 = t.split(‘ ‘) t2. reverse() t3. join(t2) return t3 2. def reverse words (text): r 阅读全文
posted @ 2022-06-30 15:58
大序列
阅读(38)
评论(0)
推荐(0)

浙公网安备 33010602011771号