摘要: 从今天起,要养成每天记笔记的习惯,把学到的点点滴滴记录下来,也算是成长吧 阅读全文
posted @ 2018-01-21 12:25 pyming 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #!coding:utf-8 # Author:pymingming import pyperclip def code_table(): f = open('code.txt','r') s = f.readlines() l1,l2 = [],[] for line in s: key = line.split()[4] l1.... 阅读全文
posted @ 2018-01-04 09:09 pyming 阅读(4483) 评论(0) 推荐(0) 编辑
摘要: 装饰器的作用:用来装饰特定函数, 原则:不改变原来的函数代码,不改变函数调用方式,为函数增加新的功能 应用:假设我定义了一个登录页面的函数,登录后显示登录成功,我想,在不修改函数的同时让每次登录有个验证用户名和密码的过程,登录成功则执行函数,不成功提醒用户重新输入。 分析:1,定义一个函数 2,定义 阅读全文
posted @ 2017-10-31 09:07 pyming 阅读(621) 评论(0) 推荐(0) 编辑
摘要: import re import xlrd f1 = open("v9_c8_a3_a16.txt","w") f2 = open("a9_not_c8a3a16.txt","w") f3 = open("c8_not_v9a3a16.txt","w") f4 = open("a3_not_v9c8 阅读全文
posted @ 2017-10-25 22:14 pyming 阅读(4070) 评论(0) 推荐(0) 编辑
摘要: #!coding:utf-8 # Author:pymingming import xlrd import re from xlrd import open_workbook from xlutils.copy import copy def read(file, sheet_index=0): w 阅读全文
posted @ 2017-10-25 22:13 pyming 阅读(28408) 评论(0) 推荐(0) 编辑
摘要:  ?匹配零次或一次前面的分组。  *匹配零次或多次前面的分组。  +匹配一次或多次前面的分组。  {n}匹配 n次前面的分组。  {n,}匹配 n次或更多前面的分组。  {,m}匹配零次到 m次前面的分组。  {n,m}匹配至少 n次、至多m次前面的分组。  {n,m}?或*?或+? 阅读全文
posted @ 2017-10-25 08:50 pyming 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than complicated.Flat is better than ne 阅读全文
posted @ 2017-10-20 21:40 pyming 阅读(241) 评论(0) 推荐(0) 编辑