码迷,mamicode.com
首页 >  
搜索关键字:python2.7 tab自动补全 readline    ( 2135个结果
设置python 命令行交互程序自动补齐
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
if语句判断闰年、平年
一、让用户输入一个年份,判断是否是闰年。 判断一个年份是否是闰年有两个条件 ①能被400整除;②能被4整除但是不能被100整除 Console.WriteLine("请输入年份:"); int nian = Convert.ToInt32(Console.ReadLine(...
分类:其他好文   时间:2015-07-07 22:46:04    阅读次数:213
15-07-06 定闹钟
Console.WriteLine("请输入闹钟的日期时间"); DateTime s = Convert.ToDateTime(Console.ReadLine()); while (true) { ...
分类:其他好文   时间:2015-07-07 22:30:30    阅读次数:157
if语句判断身高体重是否标准
1.判断身高,体重是否标准Console.WriteLine("请输入您的身高:"); int sg = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("请输入您的体重:"); ...
分类:其他好文   时间:2015-07-07 18:58:55    阅读次数:123
C#_if—for—swith语句
问有钱、有车、有房、有能力?(if)Console.WriteLine("你有钱吗?"); string q = Console.ReadLine(); if (q == "有") { Console.W...
分类:Windows程序   时间:2015-07-07 16:36:51    阅读次数:233
15-07-03 for ()语句-打印三角形
1. Console.Write("请输入要打印几行:"); int a = Convert.ToInt32(Console.ReadLine()); for (int i = 1; i = 0; j--) ...
分类:其他好文   时间:2015-07-05 23:44:47    阅读次数:145
15-07-01 c#语言基础
输入语句:Console.ReadLine(); ——读取键盘按键Console.ReadKey(); ——读取输入内容输出语句:Console.WriteLine(写要输出的字符串); ——自动换行Console.Write(写要输出的字符串); ——不自动换行注释的三种方式:// 注释一行 .....
分类:编程语言   时间:2015-07-05 22:22:41    阅读次数:151
课堂总结2-数据类型及转换方式
一、输入输出语句Console.ReadLine(); 会等待直到用户按下回车,一次读入一行Console.ReadKey(); 则是等待用户按下任意键,一次读入一个字符。二、数据类型主要掌握:1.值类型:int 整型,float 浮点型(单精度),double 双精度,char 字符型,bool ...
分类:其他好文   时间:2015-07-01 21:50:50    阅读次数:137
C#中一些字符串操作的常用用法
本篇主要讲解,字符串string的基本操作知识 倒序输出 string str = Console.ReadLine(); for (int i = str.Length - 1; i >= 0; i--) { Console.Write(str[i]); } Console.ReadLine(); 计算字符串的长度...
分类:Windows程序   时间:2015-07-01 12:28:49    阅读次数:141
mysqld_multi配置MySQL多实例(编译安装的mysql)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!