def insert_sort(list):
for i in range(len(list)):
while i > 0 and list[i] < list[i-1]:
temp = list[i]
list[i] = list[i-1]
list[i-1] = temp
i = i-1...
分类:
编程语言 时间:
2014-08-12 17:25:24
阅读次数:
269
direct path read在11g中,全表扫描可能使用direct path read方式,绕过buffer cache,这样的全表扫描就是物理读了。在10g中,都是通过gc buffer来读的,所以不存在direct path read的问题。 direct path read较高的可能原因有: 1. 大量的磁盘排序操作,order by, group by, union, disti...
分类:
数据库 时间:
2014-08-12 17:22:24
阅读次数:
281
威佐夫博奕。。。。。
代码如下:
#include
#include
int main()
{
int a,b,k,temp,n;
double m;
while(~scanf("%d%d",&a,&b))
{
if(a>b)
{
temp=a;
a=b;
b=temp;
...
分类:
其他好文 时间:
2014-08-12 17:18:44
阅读次数:
158
第一次编译是好好的,需要手工输入keystore文件地址和密码等等。第二次不需要输入,然后就直接出错了。 找了一下,发现第一步之后,cocos会记录ant信息到\frameworks\runtime-src\proj.android\ant.properties 打开这个文件发现: key.stor...
分类:
Web程序 时间:
2014-08-12 16:57:24
阅读次数:
246
文件处理f= file('poem.txt', 'w')# open for 'w'riting模式可以为读模式('r')、写模式('w')或追加模式('a')f.write(poem) # write text to filef.close()f = file('poem.txt')# if no...
分类:
编程语言 时间:
2014-08-12 16:37:34
阅读次数:
203
import osimport shutildef ProcessStr(path, flag): line = path.strip('\n') line = line.split() fullpath = line[0] fullpath = fullpath[:49...
分类:
其他好文 时间:
2014-08-12 16:35:04
阅读次数:
211
将大小王看成0
排序 然后求出0的个数 如果0的个数大于差值且不为对子就返回true
#include
//n张牌判断是否是顺子
using namespace std;
int partition(int *number,int start,int end){
int temp = number[start];
while(start < end){
while(start ...
分类:
其他好文 时间:
2014-08-12 13:38:24
阅读次数:
142
protected void Button1_Click(object sender, EventArgs e) { Button btn = sender as Button; Response.Write(btn.CommandArgument.ToString());//前台传按钮参数过来 ....
分类:
其他好文 时间:
2014-08-12 13:18:14
阅读次数:
219
UIImage*im=[UIImageimageWithContentsOfFile:path];//通过path图片路径获取图片NSData*data=UIImagePNGRepresentation(im);//获取图片数据/*ios中获取图片的方法有两种,一种是UIImageJPEGRepre...
分类:
其他好文 时间:
2014-08-12 13:10:44
阅读次数:
171
表结构:typenamevarchar(50)typedescvarchar(50)示例 SQL 语句:SELECT '{"'+TypeName, '":"', TypeDesc + '"}',',' FROM dbo.SYS_DicEnumType FOR XML PATH('')这样就可以得到一...
分类:
数据库 时间:
2014-08-12 13:01:24
阅读次数:
289