摘要: python装饰器的使用def ty(func): #定义装饰器 def zty(): print 'hehehe' #装饰内容 func() ... 阅读全文
posted @ 2016-07-09 22:11 aallennty 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 生成六位验证码python代码import randomdef Verifi_code(): code = [] for i in range(6): if i == random.randint(1,5): code.append(... 阅读全文
posted @ 2016-07-09 22:06 aallennty 阅读(129) 评论(0) 推荐(0) 编辑