摘要: user,passwd = "alex","aaaa"def auth(auth_type): print("auth func:",auth_type) def outer_wrapper(func): def wrapper(*args,**kwargs): print("wrapper fun 阅读全文
posted @ 2018-02-19 16:10 monkeyjz 阅读(82) 评论(0) 推荐(0)
摘要: import timedef timer(func): def deco(*args,**kwargs): start_time=time.time() func(*args,**kwargs) #运行test1 stop_time=time.time() print('func running t 阅读全文
posted @ 2018-02-12 07:43 monkeyjz 阅读(73) 评论(0) 推荐(0)
摘要: b编写的一个小程序,中间对于列表中的分隔符(,),没有输入使得程序无法运行,后来还有(%s)的使用不熟练,也是错误点。 阅读全文
posted @ 2018-02-10 15:03 monkeyjz 阅读(101) 评论(0) 推荐(0)
摘要: 在学习Django的时候,感觉之前学习的Python基础不牢,有些语法不能理解 阅读全文
posted @ 2018-02-10 08:08 monkeyjz 阅读(67) 评论(0) 推荐(0)