码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
Java 常用方法搜集 欢迎补充
public static int inputChoose(String m) {//返回整形Scanner sc = new Scanner(System.in);System.out.print(m + ":");return sc.nextInt();}//------------------...
分类:编程语言   时间:2014-10-20 18:54:30    阅读次数:221
《C++Primer》复习——with C++11 [2]
1.数组引用形参,C++允许将变量定义成数组的引用,给予同样的道理,形参也可以是数组的引用,此时引用形参绑定到对应的实参上,也就是绑定到数组上1 void print(int (&arr)[10])2 {3 for (auto elem : arr)4 cout il)2 {3...
分类:编程语言   时间:2014-10-20 18:46:39    阅读次数:225
python 注释
一、单行注释单行注释以#开头,例如:print 6#输出6二、多行注释(Python的注释只有针对于单行的注释(用#),这是一种变通的方法)多行注释用三引号'''将注释括起来,例如:'''多行注释多行注释'''三、中文注释在文件头上写入:#coding=gbk或:#coding=utf-8虽然#这个...
分类:编程语言   时间:2014-10-20 16:58:57    阅读次数:271
PHP configure --help说明
配置帮助表: --help 显示帮助信息 display this help and exit --version 显示版本 display version information and exit --quiet, --silent 不显示checking……信息 do not print`checking...‘ messages --cac...
分类:Web程序   时间:2014-10-20 13:39:24    阅读次数:345
Python List
1 #!/usr/bin/env python 2 #-*-coding:utf-8 -*- 3 #创建列表list 4 li = ['a',1,2,3,(4,5)] 5 #li=list(iterator) 6 print(li) 7 #通过下标获取列表元素数据 0开始 8 print(li[0....
分类:编程语言   时间:2014-10-20 13:04:50    阅读次数:202
JAVA基础实例(一)
1写一个方法,用一个for循环打印九九乘法表 /** *一个for循环打印九九乘法表 */ public void nineNineMultiTable() { for (int i = 1,j = 1; j System.out.print(i+"*"+j+"="+i*j+" "); if(i==j) { i=0; j++; System.out....
分类:编程语言   时间:2014-10-20 11:46:41    阅读次数:151
C++ 纯虚函数与抽象基类
在C++ 中,虚函数可以很好的实现多态,然而也有一定的局限,这个局限在于,虚函数必须在基类中定义,哪怕是空的实现。例如下面这段代码编译时就会出错:class Base{ virtual void print();};class Derived:Base{ void print() { cout .....
分类:编程语言   时间:2014-10-20 02:05:15    阅读次数:211
Python基础笔记
Python基础笔记1、print格式化输出 print(format(val,format_modifier)),比如: print(format(12,345678,"6.3f")); --输出数据占6位(位数不足时,左补空格),小数位为3位 print(format(12,34567...
分类:编程语言   时间:2014-10-20 00:42:47    阅读次数:176
C语言数组倒序排列
#include #pragma mark 数组的倒序排列int main(){ int array[5] = {1, 3, 2, 4, 5}; /*方法一:*/ for (int i = 0; i<5/2; i++) { int temp = array[i]; array[i]...
分类:编程语言   时间:2014-10-19 22:37:23    阅读次数:1276
Euler Project question 48 in python way
# The series, 11 + 22 + 33 + ... + 1010 = 10405071317.# Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000.import timestart = time....
分类:编程语言   时间:2014-10-19 21:24:41    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!