摘要:
求三位和放到列表里 a = [11,345,21,7] b = [] for i in a: sum = 0 ii = '|'.join(str(i)) iii = ii.split('|') for x in iii: sum += int(x) b.append(sum) print(b) 额。 阅读全文
摘要:
# 不断地拆分,直到长度为 1 def d(ll): len_l = len(ll) print(len_l) if len_l > 1: left = 0 right = len_l - 1 mid = len_l // 2 l_left = ll[left:mid] l_right = ll[m 阅读全文