码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
Python CSV初用
import csv f_w = csv.writer(open('ret.csv','wb')) f_w.writerow([t1,t2,uid,t4,last_date,reg_date]) 我使用的是 生成CSV文件的功能。 首先 import csv  模块 既然是生成文件 ,先用open()打开一个文件 。 就是这一句 f_w = csv.writer(open(...
分类:编程语言   时间:2015-02-05 13:37:38    阅读次数:243
汇编语言学习系列 for循环实现
假如汇编语言要实现如下C语言的功能,编译环境Ubuntu14.04(32位)。#includeint fact_for(int n){ int i; int result = 1; for(i = 2; i <= n; i++) result *= i; ret...
分类:编程语言   时间:2015-02-03 22:54:22    阅读次数:393
Go语言实现LRU算法
很简单的实现,使用List保存数据,Map实现快速访问.   具体实现了下面几个函数: func NewLRUCache(cap int)(*LRUCache) func (lru *LRUCache)Set(k,v interface{})(error) func (lru *LRUCache)Get(k interface{})(v interface{},ret bool,err er...
分类:编程语言   时间:2015-02-03 19:27:20    阅读次数:188
python学习
下面这个例子是我写了个文件替换的小程序。替换所有.html文件里的图片的路径import osimport ret = re.compile(r'\/?static\/|\/?media\/') #re.compiletemplate = '/home/laowangpython/'for root...
分类:编程语言   时间:2015-02-03 13:07:15    阅读次数:193
AVAudioPlayer播放音乐文件及读取ipod库中的音乐文件
下面是ipad上的调试效果下面是代码,代码中都有注释:#import #import #import @interface RootViewController : UIViewController { AVAudioPlayer *player;}@property (nonatomic, ret...
分类:其他好文   时间:2015-02-02 22:56:38    阅读次数:208
POJ 1269 (直线相交) Intersecting Lines
水题,以前总结的模板还是很好用的。 1 #include 2 #include 3 using namespace std; 4 5 const double eps = 1e-8; 6 7 int dcmp(double x) 8 { 9 if(fabs(x) < eps) ret...
分类:其他好文   时间:2015-02-02 15:29:23    阅读次数:206
大屏iPhone的适配 +iOS 图片尺寸要求
摘自:http://blog.ibireme.com/2014/09/16/adapted_to_iphone6/苹果公司官网设计介绍到:Retina显示屏的超高像素密度已超过人眼能分辨的范围。Retina对图像设计(图标、启动画面和其它所有像素有关的东西)有什么影响呢?如果我们的app要支持Ret...
分类:移动开发   时间:2015-02-02 14:10:28    阅读次数:662
php 数组去除空值
/** * 方法库-数组去除空值 * @param string $num 数值 * @return string */ public function array_remove_empty(&$arr, $trim = true) { if (!is_array($arr)) ret...
分类:编程语言   时间:2015-02-01 20:17:59    阅读次数:188
C语言大数四则运算
/**/////////////////#include #include #include #include /*int cchkdig(char *r) { int i=0; while(r[i]!='\0') { if(isdigit(r[i++])==0) return (0); } ret...
分类:编程语言   时间:2015-01-29 12:23:46    阅读次数:304
iOS-C_Day4___分支结构
2015.1.22//单分支结构//if(条件表达式)//{// 执行语句;//}/*int main(int argc, const char * argv[]) { int score; scanf("%d",&score); //纠错处理 if (score100) { ret...
分类:移动开发   时间:2015-01-28 20:58:36    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!