Skip to content

Instantly share code, notes, and snippets.

@gdshen
Created January 20, 2016 13:37
Show Gist options
  • Save gdshen/2a2ac63b862f4f03dd5c to your computer and use it in GitHub Desktop.
Save gdshen/2a2ac63b862f4f03dd5c to your computer and use it in GitHub Desktop.
test
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