def getNum(high_list):
status = []
for index in range(len(high_list)): # 从第0个元素开始建立
status.append(1)
for preIndex in range(index): # 从前面(第0个)元素中开始更新
if high_list[preIndex] < high_list[index] and status[preIndex] + 1 > status[index]:
# 如果当前元素小于元素,且更新后长度更长
status[index] = status[preIndex] + 1
return status
if __name__ == '__main__':
while True:
try: