- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 计算DNA中两个碱基的中点
import math#up_sticky_end is the up strand where the sequence is split#bottom_sticky_end is the bottom strand where the sequence is splitdef Calculate_distance(file_pdb,up_strand_list,bottom_str
2012-04-25 16:05:43 590
转载 python 中的字符串处理
字符串的格式化在python中也有类似于c中的printf()的格式输出标记。在python中格式化输出字符串使用的是%运算符,通用的形式为格式标记字符串 % 要输出的值组 其中,左边部分的”格式标记字符串“可以完全和c中的一致。右边的'值组'如果有两个及以上的值则需要用小括号括起来,中间用短号隔开。重点来看左边的部分。左边部分的最简单形式为:%cdoe 其
2012-04-25 15:49:52 681
原创 用python 写了一个求空间俩点之间的距离的脚本
import mathL1=['104','32','249','177']L2=['191','538','317','795']L3=['735','346','542','429']L4=['434','277','659','132']L5=['866','569','46','763']def Search_data(store_pdb,List_data):
2012-04-11 17:08:58 1836
原创 用Python写了一个多线程,但无法推出循环,请高人指点
#-*-encoding:utf-8-*-import threadingfrom change2 import *from thelast import *import datetimefile_lists=getfile()def thread_main(): global file_lists,mylock threadname=threading
2012-04-11 17:02:09 1148
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人