码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
编写第一个java程序
安装了一个编辑器,Notepad++,这个编辑器以前在写PHP的时候就喜欢用,呵呵,现在写java也先沿用这个这个编辑器吧。代码:public class Test{ public static void main(String[] args){ System.out.print...
分类:编程语言   时间:2015-05-22 00:23:01    阅读次数:160
python 打印99乘法表
#!/usr/bin/pythonforiinrange(1,10): forjinrange(1,i+1): printj,‘x‘,i,‘=‘,i*j, print"\n"
分类:编程语言   时间:2015-05-21 19:50:32    阅读次数:303
[python] 如何将unicode字符串转换为中文
答案:(http://stackoverflow.com/) ps:这个网站解决了我好多问题啊,大家多上>>>s='\u9648\u4f1f\u9706\u5176\u5b9e\u662f\u4e2a'>>>print s.decode('unicode-escape')>>>陈伟霆其实是个 首先....
分类:编程语言   时间:2015-05-21 18:43:36    阅读次数:140
python中*args和**args的不同
上一段代码,大家感受一下def test_param(*args): print(args)def test_param2(**args): print(args)test_param('test1','test2')>>>('test1',test2')test_param2(p1='test.....
分类:编程语言   时间:2015-05-21 17:09:32    阅读次数:114
Python格式化输出
python print格式化输出1. 打印字符串print ("His name is %s"%("Aviad"))效果:2.打印整数print ("He is %d years old"%(25))效果:3.打印浮点数print ("His height is %f m"%(1.83))效果:4...
分类:编程语言   时间:2015-05-21 17:04:56    阅读次数:256
python 循环设计
for循环1、range()用法 for循环后的in跟随一个序列的画,循环每次使用的序列元素而不是序列的下标 例:s='abcdefg' for i in range(0,len(s),3): print s[i] 2、enumerate() 此函数可在每次循环时获取到下标和元素 ...
分类:编程语言   时间:2015-05-21 16:56:37    阅读次数:141
FATAL ERROR: Could not find ./bin/my_print_defaults 解决方法
FATAL ERROR: Could not find ./bin/my_print_defaultsIf you compiled from source, you need to run 'make install' tocopy the software into the correct lo...
分类:其他好文   时间:2015-05-21 12:21:41    阅读次数:245
【C语言】实现一个简单的通讯录
#include #include"contact.h" void print_menu() { printf("*******************************\n"); printf("***1>add 2>del ******\n"); printf("***3>search 4>modify ******\n"); printf("***...
分类:编程语言   时间:2015-05-20 14:49:37    阅读次数:217
java用一个for循环输出99乘法表
javaJava代码 publicstaticvoidmain(String[]args){for(inti=1,j=1;i<=9;){System.out.print(j+"*"+i+"="+i*j);if(j==i){i++;j=1;System.out.println();}else{j++;...
分类:编程语言   时间:2015-05-20 13:09:00    阅读次数:140
python中数据的基本类型
1、变量无需声明,可直接使用: 2、给变量赋值后,可通过type查看此变量类型: 3、回收变量名,如把a存储不同的数据,你不需要删除原有变量就可以直接赋值 print的用法:在print后面跟多个输出,可以用逗号分隔。
分类:编程语言   时间:2015-05-20 13:05:31    阅读次数:111
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!