用pytho写的分割pdb文件一个脚本 代码段

label2): f_pdb=open(pdb_file,"r") lines=f_pdb.readlines() i=0; for line in lines: if i==12: break f_store=open(files_list[i]

ydn7 2015-02-15   1127   0
Python  

PHP下载远程文件类支持断点续传 代码段

$line)) { $lines = split(":",$line); $this->m_httphead[strtolower(trim($lines[0]))] = trim($lines[1]); }

pbd4 2015-01-17   1881   0
PHP  

支持断点续传的PHP 下载远程文件类 代码段

$line)) { $lines = split(":",$line); $this->m_httphead[strtolower(trim($lines[0]))] = trim($lines[1]); }

dwd4 2015-03-31   1459   0
PHP  

Windows下python监控脚本 代码段

MONITERCONF), 'r', 'utf8') as f: lines = f.readlines() for line in lines: line = line.strip() if not line:

opecode 2014-12-28   6183   0
Python  

生成验证码的java类 代码段

final int SIZE = 5;// 字符长度 private static final int LINES = 7;// 干扰线 private static final int WIDTH = 100;

ew3y 2015-01-06   5142   2
Java  

python常用工具代码 代码段

读文件 f = open("c:\\1.txt","r") lines = f.readlines()#读取全部内容 for line in lines print line 3.写文件 f = open("c:\\1

m2yy 2015-02-01   3069   0
Python  

一个更改 hosts 的 PHP 脚本 代码段

public function initHosts() { $lines = file($this->file); foreach ($lines as $line) { $line = trim($line);

efbb 2015-05-06   1464   0
PHP  

利用 jquery flot 生成柱状图 代码段

11], [3, 7] ] } ]; var stack = 0, bars = true, lines = false, steps = false; $.plot($("#bar1"), d1, {

jopen 2015-01-13   7265   0
jQuery   图表  

K-means算法(Spark Demo) 代码段

"SparkKMeans") val lines = sc.textFile (args (1), args (5).toInt) val points = lines.map (parseVector (_)

ye34 2015-01-06   10217   2
算法  

Linux环境下C语言实现贪吃蛇游戏 代码段

'A'; food.cx = rand() % COLS; food.cy = rand() % (LINES-2) + 2; creatLink(); setTicker(20); } //设置计时器(这个函数是书本上的例子,有改动)

jopen 2015-06-30   3187   0
C/C++  

用python 写了一个求空间俩点之间的距离的脚本 代码段

Search_data(store_pdb,List_data): f_pdb=open(store_pdb,'r') lines=f_pdb.readlines() f_pdb.close() space_coordinate_1=[]

ydn7 2015-02-15   2672   0
Python  

php绘制柱状图 代码段

$this->getLableTotalWidth(); $lines = ceil($label_w / $ruler_w); $h = 12 * $lines + (3 * ($lines + 1)) + 30; return

jopen 2015-06-05   1092   0
PHP  

C# 操作windows注册表 代码段

Registry.LocalMachine; RegistryKey software = hkml.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"

enpc 2015-05-02   2511   0
C#  

mysql 导出数据 代码段

FORMAT DELIMITED FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' hive 默认 FIELDS TERMINATED BY

PLAW3kEDF 2016-01-25   2214   0
MySQL  

10个实用的PHP代码片段 代码段

fclose($handle); $lines = explode("n", $contents); $arr = array(); foreach($lines as $line){ list($word

jopen 2015-07-24   5137   1
PHP  

php 十个超级有用的PHP代码片段 代码段

// display source code $lines = file('http://google.com/'); foreach ($lines as $line_num => $line) {

suxiang. 2016-01-23   3143   0
PHP  

JavaScript实现含节日、农历的日历 代码段

showInLunar } var Q = (function() { var X = {}; X.lines = 0; X.dateArray = new Array(42); function Y(a)

gwf6 2015-01-04   2088   0

php NotORM(PHP的ORM框架)示例代码 代码段

include "NotORM.php"; $pdo = new PDO("mysql:dbname=software"); $db = new NotORM($pdo); 读取数据 foreach ($db->application()

ouhp9343 2016-01-24   1018   0
PHP  

python scrapy 网络采集使用代理的方法 代码段

"http://YOUR_PROXY_IP:PORT" # Use the following lines if your proxy requires authentication proxy_user_pass

mn6e 2015-05-24   2492   0
Python  

python实现的代码行数统计代码 代码段

''' Author: liupengfei Function: count lines of code in a folder iteratively Shell-format: cmd [dir]

byyc 2015-05-27   692   0
Python  
1 2 3 4 5 6 7 8 9 10