关键点:贪心算法
def longest_continue_subseq(li): start = 0 res = 0 for i in range(1, len(li)): if li[i] <= li[i-1]: start = i res = max(res, i - start + 1) return res
返回最长子序列的长度:3