码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
for
shell脚本中的循环for循环语法结构:for变量名in条件;do…done例:#!/bin/bashsum=0foriin`seq1100`dosum=$[$sum+$i]echo$idoneecho$sum例:#!/bin/bashcd/etc/forain`ls/etc/`doif[-d$a]thenls-d$afidone例:#!/bin/bashn=`wc-l1.txt|awk‘{print$1}‘`foriin`seq1$n`dosed-n"$i"p1...
分类:其他好文   时间:2016-06-09 01:01:00    阅读次数:182
GDB踪函数的完整调用过程 及原理
http://www.lenky.info/archives/2013/02/2202 [root@localhost trace]# readelf -s ./test | gawk ' { if($4 == "FUNC" && $2 != 0) { print "# code for " $NF ...
分类:数据库   时间:2016-06-08 23:10:52    阅读次数:687
c#启动EXE文件(简单的)
在程序执行中会遇到启动本软件的exe问,或者启用其它的exe文件,已达到执行某些操作的作用。下面是两种最常见的启动exe文件。 1、调用系统dll使用其提供的方法。 引用的dll, [csharp] view plain copy print? [DllImport("kernel32.dll")] ...
分类:Windows程序   时间:2016-06-08 17:12:14    阅读次数:389
读写知多少?
先读后写,逐行输入,同样 是先open()再read(), 'r':(read)只读,'w':(write)写,'a':(append)追加。 参考: 习题—16 # coding: utf-8def write(): print ">>>Open the file..." filename = r ...
分类:其他好文   时间:2016-06-08 13:51:20    阅读次数:126
Python模块-time && datatime
time.sleep(4) #程序休眠4s import datetime print(datetime.date.today()) #返回格式:2016-06-07print(datetime.date.fromtimestamp(time.time()))print(datetime.datet ...
分类:编程语言   时间:2016-06-08 12:12:32    阅读次数:178
php---小知识点
/*$a=10;$a="字符串";print_r($a);*/$a=10;$b=88;$c=20;unset($b);if(isset($b)){echo $b;}if(!isset($b)){echo "不存在变量b"."<br>";exit();}$sum=$a+$c;echo $sum;ech ...
分类:Web程序   时间:2016-06-08 10:35:20    阅读次数:146
今天学习的关于python的list和tuple
1: ''' 2: 数组 有list和tuple之分 3: ''' 4: 5: classmates=['a','b','c','d'] 6: print(classmates) 7: length=len(classmates) 8: print(length)#4 9: print(classm... ...
分类:编程语言   时间:2016-06-08 01:39:10    阅读次数:152
跑临时脚本
catrun-data.sh#!/bin/bashkill-9`ps-ef|grep"x/SubSystemIp"|awk‘{print$2}‘`1>/dev/null2>&1cd/data/www/cdnboss&&pwdfor((i=1;i<=18;i++))do`nohupphpscript.phpx/SubSystemIp/t${i}1>/dev/null&`sleep1done
分类:其他好文   时间:2016-06-07 22:35:53    阅读次数:262
数据库一些操作
var conn = new Mongo("localhost:27017");var db = conn.getDB("f26");//连接或创建数据库// print(db.getName()); // db.dropDatabase();//删除数据库 db.createCollection( ...
分类:数据库   时间:2016-06-07 20:45:30    阅读次数:193
python正则
python 正则 re 模块常用方法 re.match #从头匹配 re.search #全局匹配第一个符合的字符串 re.findall #匹配全部,放到列表 re.finditer re.split re.sub print (r.group) #打印正则匹配的全部东西 print (r.gr ...
分类:编程语言   时间:2016-06-07 16:08:29    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!