摘要:
def maxSum(list): maxsum=list[0] for i in range (len(list)): maxtemp = 0 for j in range (i,len(list)): maxtemp = maxtemp + list[j] if maxtemp > maxsum 阅读全文
摘要:
def maxSum(list): maxsum=list[0] for i in range (len(list)): maxtemp = 0 for j in range (i,len(list)): maxtemp = maxtemp + list[j] if maxtemp > maxsum 阅读全文