排序:order by SQL> select last_name, salary from employees order by salary; 默认升序 SQL> select last_name, salary from employees order by salary desc; 降序 S ...
分类:
数据库 时间:
2017-08-19 11:08:40
阅读次数:
181
1.1 C++ STL ? STL容器: set, map, vector, priority_queue, queue, stack, deque, bitset? STL算法: sort, unique, nth_element, reverse, rotate, next_permution, ...
分类:
其他好文 时间:
2017-08-18 20:41:24
阅读次数:
291
需求:1、启动程序后,让用户输入工资,然后打印商品列表2、允许用户根据商品编号购买商品3、用户选择商品后,检测余额是否够,够就直接扣款,不够就提醒4、可随时退出,退出时,打印已购买商品和余额 # -*- coding:utf-8 -*-salary=int(raw_input("请输入工资:"))a ...
分类:
其他好文 时间:
2017-08-17 23:33:14
阅读次数:
202
# loads() str to json data# jumps() json to str# jump() json to filedef ladstest(): data = '{"name": "July", "salary": 999999, "title": "CEO", "manage ...
分类:
编程语言 时间:
2017-08-15 15:09:57
阅读次数:
209
impala: 查询impala表时一定要加库名使用级联删除带有表的数据库:DROP database name cascade; insert插入的两种方式: 1. insert into employee (ID,NAME,AGE,ADDRESS,SALARY)VALUES (1, 'Rames ...
分类:
其他好文 时间:
2017-08-14 23:38:31
阅读次数:
259
列思路,以后填坑。 a. 证明:最小生成树是瓶颈生成树 证略 b. 给定图G和整数b,线性时间内判断瓶颈生成树T值是否不超过b 解:DFS或BFS遍历图G,跳过所有权值大于b的边,最后若有节点未遍历到,则T值大于b,否则不超过b c. 求瓶颈生成树T值 1. 求出边权值的中位数(类似于求nth el ...
分类:
编程语言 时间:
2017-08-14 22:26:30
阅读次数:
622
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-08-14 17:26:33
阅读次数:
106
1 [egon] 2 name = egon 3 age = 18 4 is_admin = True 5 salary = 3.1 ...
分类:
编程语言 时间:
2017-08-13 16:26:54
阅读次数:
238
第一个pyhone程序,简单的购物车功能,刚开始学习,练习下手感。 #/usr/bin/env python#-*- coding:utf-8 -*- salary = int(raw_input("请输入您的工资:").strip()) shop_list=[[1,'iphone6s',5800] ...
分类:
编程语言 时间:
2017-08-13 14:20:32
阅读次数:
177
Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change all f values to m and vice ver ...
分类:
其他好文 时间:
2017-08-11 23:51:30
阅读次数:
230