salary.isdigit() 判断 下断点调试 for和else组合 ...
分类:
编程语言 时间:
2017-08-11 22:07:36
阅读次数:
134
name = input("name:") age = input("age:") job = input("job:") salary = input("salary:") info = ''' ------- info of %s --------- Name:%s Age:%s Job:%s ... ...
分类:
其他好文 时间:
2017-08-11 21:59:19
阅读次数:
147
nth-child是表示选择当前父元素下所有元素中的第几个元素,而nth-of-type则表示选择父元素某一个给定类型的第几个元素, 例如 选择p父元素下的第一个p元素,可以这么写: parent>p:first-child 或者 parent>p:first-of-type,第一种写法在父元素下第 ...
分类:
Web程序 时间:
2017-08-11 13:25:58
阅读次数:
174
#Ulist li:nth-of-type(odd){ margin-left: 20px;}奇数行 #Ulist li:nth-of-type(even){margin-left: 10px;}偶数行 1 2 3 4 5 6 ...
分类:
Web程序 时间:
2017-08-10 15:09:20
阅读次数:
532
题目: 查找斐波纳契数列中第 N 个数。 所谓的斐波纳契数列是指: 前2个数是 0 和 1 。 第 i 个数是第 i -1 个数和第 i -2 个数的和。 斐波纳契数列的前10个数字是: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 ... 注意事项 The Nth fibonac ...
分类:
其他好文 时间:
2017-08-10 11:45:45
阅读次数:
107
li做浮动布局,左右高度不一致会出现错乱 解决: li:nth-of-type(odd){clear:both;} ...
分类:
其他好文 时间:
2017-08-10 10:26:48
阅读次数:
135
创建一个表:create table if not exists Teachaers(tea_id integer primary key autoincrement,tea_name text,tea_gender text,tea_age interger,tea_salary text) pr ...
分类:
数据库 时间:
2017-08-09 21:07:38
阅读次数:
141
#_author_: edison#date: 2017/8/8salary = int(input('please input your salary:'))flag = Truea = [1,2,3,4,5]b = ['iphone7','mac pro','coffee','bicycle', ...
分类:
其他好文 时间:
2017-08-09 11:31:49
阅读次数:
127
有如下员工表employee: 建表sql为: CREATE TABLE `employee` ( `id` int(11) NOT NULL, `name` varchar(50) DEFAULT NULL, `salary` int(11) DEFAULT NULL, `deptid` int( ...
分类:
数据库 时间:
2017-08-06 17:07:57
阅读次数:
219
单行子查询的思路: SQL> select salary from employees where last_name='Feeney'; SQL> select last_name from employees where salary>3000; SQL> select last_name fr ...
分类:
其他好文 时间:
2017-08-06 17:01:00
阅读次数:
160