Created
February 15, 2015 09:16
-
-
Save anonymous/023b18ae22cd80ce99bb 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 mouse_change(func): | |
def add_mouse_change(*args): | |
print('mouse wait') | |
func(*args) | |
print('mouse normal') | |
return add_mouse_change | |
@mouse_change | |
def monkey_business(a, b, c): | |
print('a={0}, b={1}, c={2}'.format(a, b, b)) | |
monkey_business(10, 20, 30) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment