码迷,mamicode.com
首页 >  
搜索关键字:step return    ( 64763个结果
数字编码 - 归零码RZ 非归零码NRZ 曼彻斯特码Manchester 差分曼彻斯特码 Differential Manchester
http://en.wikipedia.org/wiki/Return-to-zeroRZ编码(Return-to-zero Code),即归零编码。在RZ编码中,正电平代表逻辑1,负电平代表逻辑0,并且,每传输完一位数据,信号返回到零电平,也就是说,信号线上会出现3种电平:正电平、负电平、零电平:...
分类:其他好文   时间:2014-05-13 22:54:15    阅读次数:3085
[LeetCode]Reverse Words in a String
题目:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitu...
分类:其他好文   时间:2014-05-13 22:45:04    阅读次数:317
day6_python学习笔记_chapter8_条件,循环
1. if elif else 2. 条件表达式:三元操作符: smaller = x if x < y else y == if x < y : smaller =x else : smaller = y3. range(start, end, step=1) 4. xrange(): 当有一个很...
分类:编程语言   时间:2014-05-13 21:48:28    阅读次数:362
poj 1430 第二类斯特林数
1 #include 2 #include 3 #include 4 using namespace std; 5 6 int get2(long long n){ 7 if(n==0) 8 return 0; 9 int cnt =0;10 whi...
分类:其他好文   时间:2014-05-13 21:03:03    阅读次数:329
poj 2007 Scrambled Polygon 极角排序
1 /** 2 极角排序输出,,, 3 主要atan2(y,x) 容易失精度,,用 4 bool cmp(point a,point b){ 5 if(cross(a-tmp,b-tmp)>0) 6 return 1; 7 if(cross(a-tmp,b-tmp)...
分类:其他好文   时间:2014-05-13 20:05:34    阅读次数:242
poj-1426(转)
大致题意:给出一个整数n,(1 int n,flat;unsigned long long b;void DFS(unsigned long long a,int step){ if(flat||step==19) { return ; } if(a%n==0)...
分类:其他好文   时间:2014-05-13 19:59:23    阅读次数:276
Oracle 过程中变量赋值
create or replace function get_sal1(id employees.employee_id%type) return number is sal employees.salary%type;begin sal := 0; select salary into s...
分类:数据库   时间:2014-05-13 19:41:58    阅读次数:456
poj 2417
1 Accepted 8508K 391MS C++ 2004B 2 相比下边,,优化太多太多了。。。 3 /** 4 baby-step-giant-step 因为数据量太大,,自己写hash 5 6 **/ 7 #include 8 #include...
分类:其他好文   时间:2014-05-13 19:27:32    阅读次数:363
python自定义查找文件内容
#!/usr/bin/envpython#coding:utf8#此脚本为查找递归目录下所有文件匹配的内容importos,sys,tabdefpaths(path):list_path=os.walk(path)all_file=[]forp,d,flinlist_path:forfinfl:pfile=os.path.join(p,f)ifos.path.isdir(pfile):paths(pfile)all_file.append(pfile)returnall..
分类:编程语言   时间:2014-05-13 03:49:34    阅读次数:426
python批量修改服务器密码,同时保存execl表格
#!/usr/bin/envpython#coding:utf8#随机生成自定义长度密码fromrandomimportchoiceimportstring,pickledefGenPassword(length=8,chars=string.ascii_letters+string.digits):return‘‘.join([choice(chars)foriinrange(length)])defpasslist(r_user,c_user,ip_list,web_list):di..
分类:编程语言   时间:2014-05-13 01:25:56    阅读次数:505
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!