# -*- coding: utf-8 -*-"""Created on Sun Jun 08
21:36:24 2014@author: cpycpp""""""BioPython(www.bipython.org)开始于1999年8月,发起者为Jeff
Chang和Andrew Dalke。同类...
分类:
编程语言 时间:
2014-06-09 20:48:46
阅读次数:
216
关于Seq对象的内容# -*- coding: utf-8 -*-"""Created on Sun
Jun 08 22:03:41 2014@author:
cpycpp""""""字母表用于定义序列的内容。如果序列用字符串来保存,就无法知道序列的种类。BioPython引入Seq对象的原因。Se...
分类:
编程语言 时间:
2014-06-09 20:34:25
阅读次数:
355
有关于 Seq 对象和 MutbableSeq 对象# -*- coding: utf-8
-*-"""Created on Sun Jun 08 23:59:14 2014@author: cpycpp""""""Seq
对象的很多行为都像字符串,所以许多字符串的操作都可以用于 Seq 对象"""...
分类:
编程语言 时间:
2014-06-09 20:25:02
阅读次数:
253
Date.prototype.Format = function (fmt) { //author:
meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.get...
分类:
编程语言 时间:
2014-06-09 18:09:09
阅读次数:
275
有一道这种面试题:开启一个子线程和主线程同一时候运行,子线程输出10次后接着主线程输出100次,如此重复50次。先看以下代码:package
com.maso.test;/** * * @author Administrator *
两个线程,当中是一个主线程,第一个线程先运行输出10次,主线程接....
分类:
移动开发 时间:
2014-06-09 17:17:43
阅读次数:
310
package chap04_Divide_And_Conquer;import static
org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;/** * 矩阵相乘的算法 *
* @author xiaojintao....
分类:
其他好文 时间:
2014-06-09 16:12:24
阅读次数:
273
php Action 服务器端
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of UploadAction
*
* @author hxwj
*/
class ...
分类:
Web程序 时间:
2014-06-08 15:26:18
阅读次数:
292
代码清单:
<?php
/**
* 检测输入中是否含有错误字符
* @author ruxing.li
* @param char $string 要检查的字符串名称
* @return boolean
*/
function is_badword($string) {
$badwords = array("\\",'&',' ',"'",'"','/','*',',',''...
分类:
其他好文 时间:
2014-06-08 14:49:48
阅读次数:
288
代码清单:
<?php
/**
* 判断字符串是否为utf8编码,英文和半角字符返回ture
* @author ruxing.li
* @param $string
* @return bool
*/
function is_utf8($string) {
return preg_match('%^(?:
[\x09\x0A\x0D\x...
分类:
其他好文 时间:
2014-06-08 10:47:58
阅读次数:
267
本函数对 form 表单提交过来的 textarea 文本域的内容进行处理。
代码清单:
<?php
/**
* 格式化文本域内容
* @author ruxing.li
* @param $string 文本域内容
* @return string
*/
function formatTextarea($string) {
$string = nl2br ( str_re...
分类:
其他好文 时间:
2014-06-08 10:36:42
阅读次数:
184