product_list = [('iphone',5800),('iwatch',2400),('book',80),('apple',50)] #创建列表库shoppinglist = [] #定义购物车的列表salary = input("input your salary:")if sala ...
分类:
编程语言 时间:
2017-11-01 12:15:39
阅读次数:
279
运算 select 姓名列,工资列,工资列*12 from 表名 计算年薪 字符串拼接 irst_name||'是'||start_date||'入职的,工资是'||salary||',职位是'||title 备注 from 表名 空值置换函数 nav() nvl(列|值|表达式,0) 例子:查询所 ...
分类:
数据库 时间:
2017-10-31 18:39:51
阅读次数:
159
nth-child() 是指该元素处在父级元素下不论标签的类型下排第几个 first-of-type 是指该元素处在父级元素下同种标签的第几个 ...
分类:
其他好文 时间:
2017-10-31 14:23:58
阅读次数:
102
Given a linked list, remove the nth node from the end of list and return its head. For example, Note:Given n will always be valid.Try to do this in on ...
分类:
其他好文 时间:
2017-10-31 11:18:39
阅读次数:
156
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might ...
分类:
其他好文 时间:
2017-10-29 18:47:53
阅读次数:
207
nth Permutation LightOJ - 1060 题意:给定一个小写字母组成的字符串,对其中所有字母进行排列(排列组合的排列),将所有生成的排列按字典序排序,求排序后第n个排列。 方法:按位生成。 首先算出所有字母可以形成的排列总数,如果小于n那么为Impossible。 否则,从第一位 ...
分类:
其他好文 时间:
2017-10-27 19:53:04
阅读次数:
128
Import 语法是给编译器寻找特定类的适当位置的一种方法。 创建一个Employee 类,包括四个实体变量姓名(name),年龄(age),职位(designation)和薪水(salary)。 然后创建一个EmployeeTest类,这个类创建了两个 Employee 类的实例,并且为每个对象调 ...
分类:
编程语言 时间:
2017-10-26 19:03:17
阅读次数:
223
Write a SQL query to get the second highest salary from the Employee table. For example, given the above Employee table, the query should return 200 a ...
分类:
其他好文 时间:
2017-10-24 13:07:03
阅读次数:
154
1008. Elevator (20) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue The highest building in our city has only one elevator. A requ ...
分类:
其他好文 时间:
2017-10-22 22:02:43
阅读次数:
137
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might ...
分类:
其他好文 时间:
2017-10-22 21:42:12
阅读次数:
103