Created
November 30, 2017 08:04
-
-
Save vigack/f6ec5b345902b20983d049abd67de2e6 to your computer and use it in GitHub Desktop.
判断list是否单调递增
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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