近来想学习一下python很算法,用python实现了一下快速排序:#pythondef quick_sort(array, length): if length i): if array[j]array[j]: array[j] = ar...
分类:
编程语言 时间:
2014-11-16 14:31:10
阅读次数:
202
Given any $k$-tupel of linearly independent vectors $X$ as above, there exists a $k$-tuple $Y$ biorthognal to it. If $k=n$, this $Y$ is unique. \eex$$...
分类:
其他好文 时间:
2014-11-16 12:02:08
阅读次数:
151
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2014-11-16 09:19:40
阅读次数:
218
//快速排序void Quick_Sort(int *a,int low,int high){ int Partition(int *a,int low,int high); int mid; if(lowmid); if(i>=j)break; temp=a[i]; a[i]=a[j]; ...
分类:
编程语言 时间:
2014-11-15 21:41:57
阅读次数:
347
在liunx上读取文件时总是出问题。 比如做ios推送的时候,总是读取不到pem文件,但是程序通过file_exists判断了文件是否存在,但是还总是出错,大神检查下原来是权限的问题, 所以试着用fopen来测试下,结果发现可以判断到,所以以后需要注意了。如果有文件相关的东西,应该先判断下是否存在....
分类:
其他好文 时间:
2014-11-15 20:05:06
阅读次数:
216
手动方法(请戳点击打开链接):
点击桌面左下脚的"开始"键
打开“控制面板”
并点击 "flash player" 项 进入
并点击“全部删除…” 按钮
点击“删除数据”即可
AHK自动化删除Flashcookie脚本:
;自动删除Flashcookie
;作者:sunwind
;日期:2014年11月15日
run Co...
分类:
其他好文 时间:
2014-11-15 17:08:48
阅读次数:
131
今天在模仿一个demo,想自己去完善一些功能,自己写的时候就遇见了一个坑。。。先看代码:locallabel=cc.ui.UILabel.new({
UILabelType=1,
text="MaxScore10",
font="fonts/font-issue1343.fnt",
x=boardSize.width/2,
y=boardSize.height*0.4,
}):addTo(self.overboard)
:set..
分类:
其他好文 时间:
2014-11-15 06:43:55
阅读次数:
207
import sqlite3db = r"test.db"drp_tb_sql = "drop table if exists staff"crt_tb_sql = """create table if not exists staff( id integer primary key autoinc...
分类:
数据库 时间:
2014-11-14 22:25:49
阅读次数:
253
一、官方的文档 Resources.LoadAssetAtPathReturns a resource at an asset path (Editor Only).This function always return null in the standalone player or web p....
分类:
其他好文 时间:
2014-11-14 20:59:57
阅读次数:
218
原文: mysql支持的数据类型及其测试 1.基础知识
1.1如何来查看mysql的帮助手册
?int
Help float;
1.2创建表的规则
CREATE TABLE [IF NOT EXISTS] tbl_name(
字段名 字段类型 [完整性的约束条件]);
1.3如何向表中插入数据
IN...
分类:
数据库 时间:
2014-11-14 19:27:56
阅读次数:
354