Created
January 20, 2016 13:37
-
-
Save gdshen/2a2ac63b862f4f03dd5c to your computer and use it in GitHub Desktop.
test
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 new_count(n): | |
def f(): | |
nonlocal n | |
n += 1 | |
return n | |
return f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment