会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
pyming
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
2018年1月21日
python每日一记目标
摘要: 从今天起,要养成每天记笔记的习惯,把学到的点点滴滴记录下来,也算是成长吧
阅读全文
posted @ 2018-01-21 12:25 pyming
阅读(127)
评论(0)
推荐(0)
2018年1月4日
碱基序列转换成氨基酸序列
摘要: #!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
阅读(4901)
评论(0)
推荐(0)
2017年10月31日
python 之装饰器的应用
摘要: 装饰器的作用:用来装饰特定函数, 原则:不改变原来的函数代码,不改变函数调用方式,为函数增加新的功能 应用:假设我定义了一个登录页面的函数,登录后显示登录成功,我想,在不修改函数的同时让每次登录有个验证用户名和密码的过程,登录成功则执行函数,不成功提醒用户重新输入。 分析:1,定义一个函数 2,定义
阅读全文
posted @ 2017-10-31 09:07 pyming
阅读(630)
评论(0)
推荐(0)
2017年10月25日
python 批处理excel文件实现数据的提取
摘要: 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
阅读(4087)
评论(0)
推荐(0)
python 实现excel数据的提取和整理
摘要: #!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
阅读(28427)
评论(0)
推荐(0)
正则表达式
摘要: ?匹配零次或一次前面的分组。 *匹配零次或多次前面的分组。 +匹配一次或多次前面的分组。 {n}匹配 n次前面的分组。 {n,}匹配 n次或更多前面的分组。 {,m}匹配零次到 m次前面的分组。 {n,m}匹配至少 n次、至多m次前面的分组。 {n,m}?或*?或+?
阅读全文
posted @ 2017-10-25 08:50 pyming
阅读(203)
评论(0)
推荐(0)
2017年10月20日
The zen of python
摘要: 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
阅读(244)
评论(0)
推荐(0)
上一页
1
2
3
4
公告