Skip to content

Instantly share code, notes, and snippets.

@vigack
Created November 30, 2017 08:04
Show Gist options
  • Save vigack/f6ec5b345902b20983d049abd67de2e6 to your computer and use it in GitHub Desktop.
Save vigack/f6ec5b345902b20983d049abd67de2e6 to your computer and use it in GitHub Desktop.
判断list是否单调递增
def isMonostoneInc(list):
return all(list[i], list[i+1] for i in range(len(list)-1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment