//输出 Console.WriteLine("这是一行文字"); 自动回车的Congsole.Write(""); 不自动回车注意: 1、大小写敏感。(快捷键操作)2、括号,引号,分号都是英文状态下的符号。3.结尾不要忘记写分号。//输入string s = Console.ReadLine()....
分类:
其他好文 时间:
2014-12-21 23:39:06
阅读次数:
255
1、安装前准备,需要安装如下工具:perl、 libdbi-perl、 libdbd-mysql-perl、 libdbd-pg-perl、 libfrontier-rpc-perl、 libterm-readline-gnu-perl、 libberkeleydb-perl、flex、bison、...
分类:
系统相关 时间:
2014-12-21 23:30:41
阅读次数:
476
//输出string s = Console.ReadLine(); Console.WriteLine("你刚才输入的是:"+s); Console.Beep(); Console.Beep(); Consol...
分类:
其他好文 时间:
2014-12-21 15:11:43
阅读次数:
205
importosimportos.pathf=open("Shouldlist.txt")ShouldList=[]while1:line=f.readline().strip('\n')#printlineifnotline:breakShouldList.append(line)#printSh...
分类:
编程语言 时间:
2014-12-20 02:01:38
阅读次数:
219
1、for循环嵌套----最基础题目:求阶乘的和 int sum = 0; int n = int.Parse(Console.ReadLine()); for (int i = 0; i 1; n--) 9 {10 Cons...
try: 用于检查发生的异常,并帮助发送任何可能的异常。 catch: 以控制权更大的方式处理错误,可以有多个catch子句。 finally :无论是否引发了异常,finally的代码块都将被执行。 int i; try { string s = Console.ReadLine(); i = ....
pythoncentos自带的版本是2.6.6,有些库不支持,决定编译安装python2.7编译后,发现退格键不能用,查了半天发现是readline库没有安装,需要手动编译yum-yinstallreadlinereadline-devel*重新编译python./configure--prefix=/opt/python/--with-readlinemake&&makeinsta..
分类:
编程语言 时间:
2014-12-14 07:19:38
阅读次数:
563
Console.WriteLine("请输入身高"); int hight = int.Parse(Console.ReadLine()); Console.WriteLine("请输入体重"); int we...
分类:
其他好文 时间:
2014-12-13 21:45:47
阅读次数:
230
Console.WriteLine("请输入a"); int a = int.Parse(Console.ReadLine()); Console.WriteLine("请输入b"); int b = int.Parse(Consol...
分类:
其他好文 时间:
2014-12-13 21:45:23
阅读次数:
223
int a = int.Parse(Console.ReadLine()); if(a>=1 && a<=100) { if((a%7==0)||(a%10==7)||(a/10==7)) ...
分类:
其他好文 时间:
2014-12-13 21:45:12
阅读次数:
243