码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
shell 笔记3
iptemp=`ifconfig|grepBcast|awk{‘print$2‘}|awk-F:{‘print$2‘}`#echo$iptemp10.1.1.1将执行shell命令的结果赋予变量
分类:系统相关   时间:2014-10-17 15:44:43    阅读次数:164
Makefile中如何调用python和perl文件为自己提供需要的数据
Makefile中如何调用python和perl文件为自己提供需要的数据,利用print函数对外输出数据 实例代码如下 perl.pl #!/usr/bin/perl print("hello, perl") python.py #!/usr/bin/env python print("hello, python") ...
分类:编程语言   时间:2014-10-17 13:47:05    阅读次数:462
1到100之间的素数
1 /* 2 * 求1到100之间的质数 3 */ 4 public class Zy3 { 5 public static void main(String[] args) { 6 System.out.print("1到100之间的素数有:\n"+"\t"+1+"\...
分类:其他好文   时间:2014-10-16 23:03:13    阅读次数:186
Python设计模式——模版方法模式
1.模版方法模式做题的列子:需求:有两个学生,要回答问题,写出自己的答案#encoding=utf-8__author__ = 'kevinlu1010@qq.com'class StudentA(): def answer1(self): print '题目一:XXXXXX' ...
分类:编程语言   时间:2014-10-16 22:58:53    阅读次数:253
利用Java中反射来分析类的示例小程序
import java.util.*;import java.lang.reflect.*;/** * This program uses reflection to print all features of a class. * @version 1.1 2004-02-21 * @author...
分类:编程语言   时间:2014-10-16 21:27:23    阅读次数:278
正则--两个匹配值相等
要求匹配字符,开始与结束的值相等,中间只能为数字$str = 'a123a';preg_match('/^(\w)[\d]*(\1)$/',$str,$res);print_r($res);---------------(\1)引用第一次大括号里的值,以些类推(\2)(\3)
分类:其他好文   时间:2014-10-16 16:22:12    阅读次数:160
快速排序算法的修改,,
参考了一下别人的程序,把bug的问题解决了,先把正确的代码贴上,让后分析一下之前的错误:#includeusing namespace std;void vector_initial(int *array,int n);void vector_print(int *array,int n);void...
分类:编程语言   时间:2014-10-16 12:46:42    阅读次数:154
6174问题
#include#include#includeint main(void){ char a[1000]; scanf("%s",a); printf("%s->",a); for(;;) { int len=strlen(a); int i,j,old=atoi(a); for(i=0;ia[j....
分类:其他好文   时间:2014-10-16 09:09:32    阅读次数:151
java2
mport java.util.Scanner;public class java1 {public static void main(String[] args) { Scanner sc = new Scanner(System.in);System.out.print("请输入你的工资"); ...
分类:编程语言   时间:2014-10-16 02:13:01    阅读次数:166
python中的input,print
此用例在python3.3.5中测试通过:输入:在python中输入是使用input,下面示例代码表示把输入的值存入变量s中,并输入s在这里提醒一下:使用input获取的值都是string类型输出:输出s有两种方式,第一种方式就是直接在屏幕中输入s,然后回车(上图)。第二种输出方式就是使用print...
分类:编程语言   时间:2014-10-16 01:35:01    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!