码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
最近用到的Linux命令总结 find route netstat ping watch killall iostat free top ps
http://www.cnblogs.com/peida/tag/每日一linux命令/default.html?page=1find如果想在当前目录查找文件名以一个个小写字母开头,最后是4到9加上.log结束的文件:命令:find.-name"[a-z]*[4-9].log"-print如在当前目...
分类:移动开发   时间:2015-09-10 19:25:45    阅读次数:355
PHP笔记01
PHP输出语句(1)echo"helloworld!";---echo命令(2)print();输出语句,是函数,有返回值。输出成功返回1,失败返回0。(3)printf();格式化输出字符串。例:printf("%d,%f",12,12.3);(4)sprintf();格式化拼接字符串,不是输出语...
分类:Web程序   时间:2015-09-10 15:58:43    阅读次数:448
Python 的多线程模块(threading)
1. 1 #coding=utf-8 2 import threading 3 from time import ctime,sleep 4 5 6 def music(func): 7 for i in range(2): 8 print "I was listenin...
分类:编程语言   时间:2015-09-10 12:32:37    阅读次数:179
js 打印页面内容
function Pageprint(tid) { var oldHTNL= document.body.innerHTML; document.body.innerHTML = document.getElementById(tid).innerHTML; window.print(); doc....
分类:Web程序   时间:2015-09-10 12:31:16    阅读次数:170
零基础学python-14.2 python的文档资源:文档字符串
这一章节我们来说说文档字符串:__doc__ 文档字符串其实也是注释的一种,但是它一般放在模块文件、函数或者类语句的顶部,主要用来说明它们是干什么的,为什么这样做 python会自动封装这些文字,放到__doc__属性里面 >>> def test(): '这是一个测试方法' print('hello world') >>> test.__doc__ '这是一个测试方法' >>> ...
分类:编程语言   时间:2015-09-10 11:12:07    阅读次数:196
零基础学python-14.3 python的文档资源:help函数
python除了提供__doc__来查询文档字符串,还提供另外的一种方法来查询文档字符串:help 下面是我们自己建立的一个类,使用help打印,形成相关的报表信息 >>> class Test(): '这是一个测试类' def helloworld(): '测试方法' print('hello world') >>> help(Test) Help on class Te...
分类:编程语言   时间:2015-09-10 11:10:56    阅读次数:149
计算机进行小数运算会出错
float sum=0;for(int i=0;i<100;i++) sum+=0.1;System.out.print(sum);//10.000002原因:计算机计算数字时,使用的是二进制,而十进制的0.1,无法用二进制精确表示,是一个二进制循环数,0.00011001100……(1100循环....
分类:其他好文   时间:2015-09-10 10:45:37    阅读次数:97
Python 的MD5模块
1.md5是Python的加密模块:但是具体的原理我还没有搞懂。第一种:import md5src = 'this is a md5 test.' m1 = md5.new() m1.update(src) print m1.hexdigest()1 # -*- coding:utf-8...
分类:编程语言   时间:2015-09-10 08:23:55    阅读次数:130
为何重写toString方法后会使哈希码能够打印出来
首先还是推荐lz看源代码简单的讲之所以调用了toString()方法,不是什么编译器默认的,而是因为lz你调用的是out.print()方法仔细看源代码,在PringStream类中,print方法是这样写的 public void print(Object obj) { write(St...
分类:其他好文   时间:2015-09-10 01:55:55    阅读次数:1164
C++/MFC如何启动另一个应用程序并获取其进程 ID
ShellExecute(hWnd: HWND; {指定父窗口句柄}Operation: PChar; {指定动作, 譬如: open、runas、print、edit、explore、find[2] }FileName: PChar; {指定要打开的文件或程序}Parameters: PChar;...
分类:编程语言   时间:2015-09-10 01:42:52    阅读次数:460
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!