CSS Ribbon

Reproducing the GitHub Ribbon in CSS

2018年2月23日

装饰器阶段性练习(题目)[转载http://www.cnblogs.com/linhaifeng/p/7278389.html]

摘要: # 一:编写函数,(函数执行的时间是随机的)# 二:编写装饰器,为函数加上统计时间的功能# 三:编写装饰器,为函数加上认证的功能## 四:编写装饰器,为多个函数加上认证的功能(用户的账号密码来源于文件),要求登录成功一次,后续的函数都无需再输入用户名和密码# 注意:从文件中读出字符串形式的字典,可以 阅读全文

posted @ 2018-02-23 16:31 pandaboy1123 阅读(905) 评论(0) 推荐(1)

验证功能装饰器

摘要: def auth_func(func): def wrapper(*args,**kwargs): username = input('用户名:').strip() password = input('密码:').strip() if username =='pandaboy' and passwo 阅读全文

posted @ 2018-02-23 16:30 pandaboy1123 阅读(166) 评论(0) 推荐(0)

Pyhton学习——Day10

摘要: #################################################################################################################高阶函数的定义:#1.函数接收的参数是一个函数名#2.函数的返回值是一个函 阅读全文

posted @ 2018-02-23 16:29 pandaboy1123 阅读(148) 评论(0) 推荐(0)

断点测试装饰器

摘要: def timer(func): def wrapper(*args,**kwargs):#默认可以输入任何参数 # print(func)#嵌套的作用域 strat_time = time.time() res = func(*args,**kwargs)#就是在运行test(),赋值给func( 阅读全文

posted @ 2018-02-23 16:29 pandaboy1123 阅读(123) 评论(0) 推荐(0)

导航