https://leetcode.com/problems/nth-digit/#/description ...
分类:
其他好文 时间:
2017-04-26 01:47:56
阅读次数:
147
61. Rotate List(M) Total Accepted: 102574 Total Submissions: 423333 Difficulty: Medium 16ms 19.35% 19. Remove Nth Node From End of List Total Accepted ...
分类:
其他好文 时间:
2017-04-24 22:50:42
阅读次数:
206
#!/usr/bin/envpython#-*-coding:utf-8-*-#author:ChanghuaGong‘‘‘Json仅支持简单的数据类型,不支持复杂类型的序列化,如函数‘‘‘importjsoninfo={"name":"daidai","salary":15000}#序列化withopen("test.txt","w")asf:#f.write(json.dumps(info))json.dump(info,f)#与上句完全..
分类:
编程语言 时间:
2017-04-23 10:39:48
阅读次数:
152
需求: 1.启动程序后,让用户输入工资,然后打印商品列表 2.允许用户根据商品编号购买商品 3.用户选择商品后,检测余额是否够,够就直接扣款,不够就提醒 4.可随时退出,退出时,打印已购买商品和余额 salary = input("Input your salary:") if salary.isd ...
分类:
其他好文 时间:
2017-04-22 12:52:55
阅读次数:
187
Kefa wants to celebrate his first big salary by going to restaurant. However, he needs company. Kefa has n friends, each friend will agree to go to th ...
分类:
其他好文 时间:
2017-04-22 01:15:44
阅读次数:
156
//按照外部比较器按名字排序(如果名字相同则按年龄降序排序): //Student [name=aaa, age=15, salary=32.2] //Student [name=aaa, age=11, salary=352.2] //Student [name=bbb, age=21, sala ...
分类:
其他好文 时间:
2017-04-21 23:13:00
阅读次数:
393
STL中的nth_element()方法的使用 通过调用nth_element(start, start+n, end) 方法可以使第n大元素处于第n位置(从0开始,其位置是下标为 n的元素),并且比这个元素小的元素都排在这个元素之前,比这个元素大的元素都排在这个元素之后,但不能保证他们是有序的,下 ...
分类:
其他好文 时间:
2017-04-21 00:02:38
阅读次数:
219
SQL> conn scott/tigerConnected.SQL> show user;USER is "SCOTT"SQL> create table qq(name varchar2(10),salary number(8,2)); 创建一个表qq,两个段,名字和工资Table create ...
分类:
数据库 时间:
2017-04-20 22:50:41
阅读次数:
204
1.字符串函数 2.数值函数 3.日期函数 DATE_FORMAT(date,fmt)函数:按字符串fmt 格式化日期date 值,此函数能够按指定的格式显示日期 4.流程函数 举例如下 mysql> select if(salary>2000,'high','low') from salary; ...
分类:
数据库 时间:
2017-04-16 16:52:00
阅读次数:
226
预览效果 index.html index.css base.css box-shadow: 0 0 1px #e0e0e0; .jd_sk .sk_time>span:nth-child(3n) /*e:first-of-type 选择e同类型的同级的 第一个元素*//*e:last-of-typ ...
分类:
其他好文 时间:
2017-04-15 01:20:41
阅读次数:
216