大佬帮看看,为啥错了
def square_of_sum(L): sum = 0 while True: if x not in L: break else: sum = sum + x * x print(square_of_sum([1,2,3,4,5]))
def square_of_sum(L): sum = 0 while True: if x not in L: break else: sum = sum + x * x print(square_of_sum([1,2,3,4,5]))
2018-09-27
举报