Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,val= 6Return:1 --> 2 --> 3 --...
分类:
其他好文 时间:
2015-10-08 10:36:03
阅读次数:
158
对List进行排序,Python提供了两个方法 方法1.用List的内建函数list.sort进行排序 list.sort(func=None, key=None, reverse=False) Python实例: >>> list = [2,5,8,9,3] >>> list [2,5,8,9,3...
分类:
编程语言 时间:
2015-10-08 10:28:05
阅读次数:
265
用with as 建立临时表(产品使用记录),想要达到什么目的?统计产品每日使用情况with productD as( select to_date('2015-1-1','yyyy-MM-dd') as dt,'A01' as productNo,'10' as pNum from dual un...
分类:
其他好文 时间:
2015-10-08 10:22:39
阅读次数:
186
一、表的状态查询(1)如果发现一个数据异常的大了,需要查看一下其中哪些表变大了,可以使用如下命令SQL> SHOW TABLE STATUS FROM 数据库名 LIKE 数据表名;或者SQL>select table_name,data_length from information_schema...
分类:
数据库 时间:
2015-10-08 10:20:32
阅读次数:
168
rowcount的用法 rowcount的作用就是用来限定后面的sql在返回指定的行数之后便停止处理,比如下面的示例,set rowcount 10select * from 表A 这样的查询只会返回表A中的前10条数据。它和"selecttop10*from表A"的作用一样。注意一点,setr.....
分类:
数据库 时间:
2015-10-08 09:07:56
阅读次数:
157
一个小例子,# -*- coding:utf-8 -*-'''Created on 2015年10月8日(1.1)Python 2.7 Tutorial Pt 12 SQLite - https://www.youtube.com/watch?v=Ll_ufNL5rDA(1.2) sqlite3.c...
分类:
数据库 时间:
2015-10-08 06:52:30
阅读次数:
257
参考资料: 1. 《Python基础教程》 2. http://www.runoob.com/python/python-variable-types.html 3. http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb49...
分类:
编程语言 时间:
2015-10-08 01:42:46
阅读次数:
204
参考资料: 1. 《Python基础教程》 2. http://www.runoob.com/python/python-date-time.html 3. http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb4931821...
分类:
编程语言 时间:
2015-10-08 01:41:27
阅读次数:
279
参考资料: 1. 《Python基础教程》 2. http://www.runoob.com/python/python-dictionary.html 3. http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182...
分类:
编程语言 时间:
2015-10-08 01:41:03
阅读次数:
265
参考资料: 1. 《Python基础教程》 2. http://www.runoob.com/python/python-tuples.html 3. http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103f...
分类:
编程语言 时间:
2015-10-08 00:35:54
阅读次数:
164