码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
求最大数,最小数
package my;public class MyJava { public static void main(String[] args) { // TODO Auto-generated method stub int[] num = {10,5,13,22,87,44}; int m...
分类:其他好文   时间:2014-10-27 01:46:18    阅读次数:180
冒泡排序
package my;public class MyJava { public static void main(String[] args) { // TODO Auto-generated method stub int[] num = {10,5,13,22,87,44}; int t...
分类:编程语言   时间:2014-10-27 01:43:20    阅读次数:202
hdu1027(n个数的按字典序排列的第m个序列)
题目信息:给出n,m,求n个数的按字典序排列的第m个序列 http://acm.hdu.edu.cn/showproblem.php?pid=1027 AC代码: /**  *全排列的个数(次序)  */ #include #include #include int a[1001],x; using namespace std; void print(int n)...
分类:其他好文   时间:2014-10-26 19:49:03    阅读次数:178
【PHP】打印输出var_dump+echo+print_r
var_dump 判断一个变量的类型与长度如:echo仅输出变量或字串print_r输出数组 a [1] => b [2] => c ) ?>
分类:Web程序   时间:2014-10-26 18:16:40    阅读次数:160
猜数字
#include #include int main (void){ int num,answer,count=0; srand(time(NULL)); answer = rand()%100+900; while (1){ printf("请输入您的数字:\n"); scanf("%...
分类:其他好文   时间:2014-10-26 16:51:30    阅读次数:229
Exercise 40: Modules, Classes, And Objects
class Song(object): def __init__(self, lyrics): self.lyrics = lyrics def sing_me_a_song(self): for line in self.lyrics: print linehappy_bda...
分类:其他好文   时间:2014-10-26 12:59:54    阅读次数:134
利用python Socket写一个类似FTP的脚本(只写了下载,上传和下载差不多就不多写了)
Socket的介绍就不多说了,网上都能搜到,直接说脚本,要实现FTP的功能要有服务器端和客户端,服务器端:importSocketServer importcommands importtime classMySockServer(SocketServer.BaseRequestHandler): defhandle(self): print"Gotanewconnfrom",self.client_address wh..
分类:编程语言   时间:2014-10-26 06:56:19    阅读次数:192
php面试题
1 'value'); 25 print_r($arr); 26 27 //能够是html和php分离的模板 28 //smarty,phplib 29 30 //使用那些工具进行版本控制 31 //svn git cvs 32 33 //如何实现字符串反转 34 //英文 35 $a="...
分类:Web程序   时间:2014-10-26 01:32:30    阅读次数:194
HDU 4791 & ZOJ 3726 Alice's Print Service (数学 打表)
HDU 4791 & ZOJ 3726 Alice's Print Service (数学 打表)...
分类:其他好文   时间:2014-10-25 20:10:04    阅读次数:219
Exercise 35: Branches and Functions
from sys import exitdef gold_room(): print "This room is full of gold. How much do you take?" next = raw_input("> ") if "0" in next or "1" in...
分类:其他好文   时间:2014-10-25 15:45:58    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!