列表操作
list函数:
>>> list('hello')
['h', 'e', 'l', 'l', 'o']改变列表:
>>> x=[1,1,1]
>>> x[1]=2
>>> x
[1, 2, 1]删除元素:
>>> names = ['wu','li','zhao','qian']
>>> del names[1]
>>> names
['wu', 'zhao', 'qian']分...
分类:
编程语言 时间:
2014-11-12 15:06:10
阅读次数:
142
SERVICE_NAME和SERVICE_NAMES和GLOBAL_DBNAME...
分类:
数据库 时间:
2014-11-12 09:22:41
阅读次数:
206
描述
In your job at Albatross Circus Management (yes, it's run by a bunch of clowns), you have just finished writing a program whose output is a list of names in nondescending order by length (so that ...
分类:
其他好文 时间:
2014-11-11 19:19:41
阅读次数:
210
题目链接:点击打开链接
题意:
给定n个点m条无向边 源点S
下面m行给出无向边以及边的容量。
问:
找一个汇点,使得图的最大流最小。
输出最小的流量。
思路:
最大流=最小割。
所以题意就是找全局最小割。
和源点无关,因为不关心源点在哪个点集里。
模版题: O(n^3)
#include
#include
#include
#include
using names...
分类:
其他好文 时间:
2014-11-11 00:54:55
阅读次数:
189
1.闲言碎语 由于项目的需要接触到Linq,刚开始有些不适应,好多概念都很模糊。不过经过一段时间的摸索,慢慢地对Linq有了一个更加深入的了解。在此记录一下备忘。 2.查询表达式语法执行Linq有两种方式,一种是方法形式eg:names.Contains('K');,另一种就是查询表达式eg:va....
分类:
其他好文 时间:
2014-11-10 19:33:34
阅读次数:
212
The customers got the shared memory 80error on AIX environment; utility truss is used to track the debug info,eXtremeDB.registry access error is found. Release notesdescribed as follows: These names ...
分类:
数据库 时间:
2014-11-10 10:00:31
阅读次数:
237
函数名称:加前缀函数—addprefix。函数功能:为“NAMES…”中的每个文件名称加入?前缀“PREFIX”。參数“NAMES…”是空格切割的文件名称序列,将“SUFFIX”加入?到此序列的每个文件名称之前。返回值:以单空格切割的加入?了前缀“PREFIX”的文件名称序列。函数说明:演示样例:$...
分类:
其他好文 时间:
2014-11-09 22:11:10
阅读次数:
204
http://www.2cto.com/database/201202/121253.html1、mysql默认情况下是否区分大小写,使用show Variables like '%table_names'查看lower_case_table_names的值,0代表区分,1代表不区分。2、mysql...
分类:
数据库 时间:
2014-11-09 09:43:04
阅读次数:
171
//练习:将一个字符串数组的元素顺序时行反转string[] names={"我","是","好人"};for(int i=0;i<names.Length/2;i++){ string temp=names[i]; names[i]=names[names.Length-1-i]; names[n...
分类:
编程语言 时间:
2014-11-08 11:50:20
阅读次数:
155
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1176
思路;预处理出每一时刻每一位置的烧饼数,然后按时间进行DP就可以了,具体看代码,实现很简单。
#include
#include
#include
#include
#include
#define MAXN 100010
#define MAXM 15
using names...
分类:
其他好文 时间:
2014-11-06 17:32:48
阅读次数:
185