1. 新建Python环境变量配置文件:
vim ~/.pystartup
# Add auto-completion and a stored history file of commands to your Python
# interactive interpreter. Requires Python 2.0+, readline. Autocomplete is
# ...
分类:
编程语言 时间:
2015-07-07 23:03:47
阅读次数:
482
一、让用户输入一个年份,判断是否是闰年。 判断一个年份是否是闰年有两个条件 ①能被400整除;②能被4整除但是不能被100整除 Console.WriteLine("请输入年份:"); int nian = Convert.ToInt32(Console.ReadLine(...
分类:
其他好文 时间:
2015-07-07 22:46:04
阅读次数:
213
Console.WriteLine("请输入闹钟的日期时间"); DateTime s = Convert.ToDateTime(Console.ReadLine()); while (true) { ...
分类:
其他好文 时间:
2015-07-07 22:30:30
阅读次数:
157
1.判断身高,体重是否标准Console.WriteLine("请输入您的身高:"); int sg = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("请输入您的体重:"); ...
分类:
其他好文 时间:
2015-07-07 18:58:55
阅读次数:
123
问有钱、有车、有房、有能力?(if)Console.WriteLine("你有钱吗?"); string q = Console.ReadLine(); if (q == "有") { Console.W...
1. Console.Write("请输入要打印几行:"); int a = Convert.ToInt32(Console.ReadLine()); for (int i = 1; i = 0; j--) ...
分类:
其他好文 时间:
2015-07-05 23:44:47
阅读次数:
145
输入语句:Console.ReadLine(); ——读取键盘按键Console.ReadKey(); ——读取输入内容输出语句:Console.WriteLine(写要输出的字符串); ——自动换行Console.Write(写要输出的字符串); ——不自动换行注释的三种方式:// 注释一行 .....
分类:
编程语言 时间:
2015-07-05 22:22:41
阅读次数:
151
一、输入输出语句Console.ReadLine(); 会等待直到用户按下回车,一次读入一行Console.ReadKey(); 则是等待用户按下任意键,一次读入一个字符。二、数据类型主要掌握:1.值类型:int 整型,float 浮点型(单精度),double 双精度,char 字符型,bool ...
分类:
其他好文 时间:
2015-07-01 21:50:50
阅读次数:
137
本篇主要讲解,字符串string的基本操作知识
倒序输出
string str = Console.ReadLine();
for (int i = str.Length - 1; i >= 0; i--)
{
Console.Write(str[i]);
}
Console.ReadLine();
计算字符串的长度...
1编译安装mysqltarzxfmysql-5.1.73.tar.gzcdmysql-5.1.73./configure--prefix=/usr/local/mysql\--enable-assembler\--with-extra-charsets=complex\--enable-thread-safe-client\--with-big-tables\--with-readline\--with-ssl\--with-embedded-server\--enable-local-infile\..
分类:
数据库 时间:
2015-06-30 18:43:47
阅读次数:
215