var $Common = {request: { //请求 ajaxTimeFn: { time: null, url: null, data: null }, //防止重复提交 延迟 ajax: function (url, data, callback, asy... ...
分类:
Web程序 时间:
2017-09-13 19:16:15
阅读次数:
203
## 输入name##name = input('What is your name ')name = 'stan' ## test for if,elifif name == 'stan': print('1. yes , your are stan' ) print('here is if')e ...
分类:
编程语言 时间:
2017-09-13 18:30:53
阅读次数:
160
#!/usr/bin/python import sys def isNum(s): for i in s: if i in '0123456789': pass else: print "%s is not a number" %s sys.exit() else: print "%s is a ...
分类:
编程语言 时间:
2017-09-13 18:27:47
阅读次数:
151
如果一个数组里所有数都不同,则返回false 如果有重复数字,则返回true C++(36ms): ...
分类:
其他好文 时间:
2017-09-13 17:16:11
阅读次数:
134
1:代码如下: // 3.12.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> using namespace std; void main() { cout<<"输入一个A-D范围内的大写字母作为成绩评价"<<endl ...
分类:
编程语言 时间:
2017-09-13 15:55:48
阅读次数:
203
import zipfile import osdef un_zip(file_name): """unzip zip file""" zip_file = zipfile.ZipFile(file_name) if os.path.isdir(file_name + "_files"): pass ...
分类:
编程语言 时间:
2017-09-13 15:14:17
阅读次数:
240
1 --声明变量 2 declare @age int 3 declare @name varchar(20) 4 5 6 --赋值(常量值) 7 set @age=18 8 select @name='张三' 9 10 11 --从数据库查出来并赋值 12 set @name=(select St... ...
分类:
数据库 时间:
2017-09-13 14:00:18
阅读次数:
270
常用的模块 1 sys 模块 os 操作系统模块 ...
分类:
编程语言 时间:
2017-09-13 13:08:41
阅读次数:
219
A_star裸题 先反向建边跑一边spfa,然后把某点目前从起点跑的距离+它到终点的最短距离作为估价来跑A_star //Twenty #include<cstdio> #include<cstdlib> #include<iostream> #include<algorithm> #include ...
分类:
其他好文 时间:
2017-09-13 11:14:11
阅读次数:
121
总结 一、数组 1、概念 2、作用及举例 二、运算符 1、分类 1)算术运算符 2)位运算符 3)比较运算符 4)逻辑运算符 三、流程控制 1、顺序流程 1)if 2)if else 3)if else if 2、 分支流程 1)switch 3、循环流程 1)for 2)While 3)do wh ...
分类:
编程语言 时间:
2017-09-13 10:21:03
阅读次数:
261