map使用
完整用户名登录,注册
冒泡排序
递归
def func(arg1,arg2):
if arg1 == 0:
print arg1, arg2
arg3 = arg1 + arg2
print arg3
func(arg2, arg3) func(0,1) demo
装饰器
def wrapper(func):
def result():
print 'before'
func()
print 'after'
return result @wrapper
def foo():
print 'foo