码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
Python网页抓取
#coding:utf-8import urllib #导入模块print dir(urllib) #查看urllib方法print help(urllib.urlopen) #查看帮助文档url="http://www.baidu.com" #定义网址html=urllib.urlop...
分类:编程语言   时间:2014-09-29 15:33:41    阅读次数:163
shell查看系统基本信息脚本
#!/bin/bash echo "IP:" ifconfig |grep "inet addr"|grep -v 127.0.0.1|awk '{print $2}'|awk -F ':' '{print $2}' echo "Product Name:" dmidecode |grep Name echo "CPU Info:" dmidecode |grep -i cpu|grep -i v...
分类:其他好文   时间:2014-09-29 14:51:31    阅读次数:199
PHP echo,print_r(expression),var_dump(expression)区别
三者都是具有输出功能的php语句,但print_r(expression),var_dump(expression)是函数,echo只是语言结构,不是函数,因此不能作为表达式的一部分。对于php的8中数据类型,echo 用于输出数值变量或者是字符串。但使用echo来输出引用变量时,如数组,仅输出数组...
分类:Web程序   时间:2014-09-29 12:46:34    阅读次数:129
hadoop 各种组件配置参数
********************************************hive***********************************************hive.cli.print.current.db 是否在命令行提示当前数据库,默认为FALSE
分类:其他好文   时间:2014-09-29 10:48:07    阅读次数:146
小ks3
#includevoid accept(int scores[]){ int i; for(i = 0; i < 5; i++) { printf("请输入第%d个数字:",i+1); scanf("%d",&scores[i]); } }
分类:其他好文   时间:2014-09-29 00:27:06    阅读次数:228
c++大数板子
#include #include #include #include using namespace std; typedef long long ll; /* * 完全大数模板 * 输出cin>>a * 输出a.print(); * 注意这个输入不能自动去掉前导0的,可以先读入到char数组,去掉前导0,再用构造函数。 * by kuangbin GG. */ #defi...
分类:编程语言   时间:2014-09-28 23:31:29    阅读次数:397
<<Python基础教程>>学习笔记 | 第10章 | 充电时刻
第10章 | 充电时刻 本章主要介绍模块及其工作机制 ------ 模块 >>> import math >>> math.sin(0) 0.0 模块是程序 一个简单的模块 #hello.py print ("Hello,World!") >>> import hello Traceback (most recent call last): File "", line 1, in import hello ImportError: No module n...
分类:编程语言   时间:2014-09-28 23:11:56    阅读次数:485
city1.jsp
分类:Web程序   时间:2014-09-28 21:09:55    阅读次数:180
shell 自动登录脚本
#!/bin/bash IP=`awk‘{print$1}‘/home/bash/mima.txt` foriin$IP do {port=`grep$i/home/bash/mima.txt|awk‘{print$2}‘` pawd=`grep$i/home/bash/mima.txt|awk‘{print$3}‘` expect<<EOF spawnssh-p$portroot@$i; expect{ "(yes/no)?"{send"yes\r"} "password:"{send"$pa..
分类:其他好文   时间:2014-09-28 18:43:36    阅读次数:133
JVM 监控以及内存分析
1 内存分析1.1 jmap -histo 命令pid=`jps | awk '{if ($2 == "Jps") print $1}'`jmap -histo $pid >>1.txt 查看pid中类的内存占用num #instances(实例数) #bytes(占用字节) class name ...
分类:其他好文   时间:2014-09-28 18:01:53    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!