关于_name_和_main_的具体含义如下:_name_:在模块中就是模块名,在类中就是类名_main_:模块自身”The namespace for a
module is automatically created the first time a module is imported. Th...
分类:
编程语言 时间:
2014-05-15 15:26:00
阅读次数:
287
MySQL 以及Python 实现排名窗口函数一例。...
分类:
数据库 时间:
2014-05-15 05:18:57
阅读次数:
381
??
This is because forward declaration in C++: Compiler needs to know function prototype when function call is compiled. So, you need declare the called function first or place the called function be...
分类:
编程语言 时间:
2014-05-15 04:52:19
阅读次数:
211
window onload 与 img onload事件
通常,window.onload就是加载完dom之后执行的。而img就是加载完图片完执行它的onload事件,根据img的src是否加载完成。
因此,看下面代码:
img onload事件绑定(错误用法)
window.onload = function(){
var img = document.g...
网上转载的一段代码,留着以后用,js文件://判断输入密码的类型 function
CharMode(iN){ if (iN>=48 && iN =65 && iN =97 && iN
>>=1; } return modes; } //返回强度级别 function chec...
分类:
Web程序 时间:
2014-05-14 13:32:27
阅读次数:
387
1 首先是try,catch getMessage();}function
file_open($path){ if(!file_exists($path)) //如果文件无法找到,抛出异常对象 { throw new
Exception("文件无法找到", 1); } if(!f...
分类:
Web程序 时间:
2014-05-14 13:19:14
阅读次数:
427
基本定制型C.__init__(self[, arg1, ...])
构造器(带一些可选的参数)C.__new__(self[, arg1, ...])
构造器(带一些可选的参数);通常用在设置不变数据类型的子类。C.__del__(self) 解构器C.__str__(self) 可打印的字符输出...
分类:
编程语言 时间:
2014-05-14 12:26:48
阅读次数:
435
回宿舍前翻翻Codeforces的时候发现了一个有趣的代码..其实是我没这么用过 :D这是一份417B的代码 1 import sys 2 from
collections import defaultdict 3 4 n = int(sys.stdin.readline()) 5 d = def....
分类:
编程语言 时间:
2014-05-14 12:20:35
阅读次数:
372
文档如下:# name, age, scoretom, 12, 86Lee, 15,
99Lucy, 11, 58Joseph, 19,
56第一栏为姓名(name),第二栏为年纪(age),第三栏为得分(score)现在,写一个Python程序,1)读取文件2)打印如下结果:得分低于60的人都有谁...
分类:
编程语言 时间:
2014-05-14 11:41:36
阅读次数:
452
转载地址:http://blog.csdn.net/haoni123321/article/details/75938211.下载python,本文使用python-2.7.2.msi2.下载django,本文使用Django-1.3.1.tar.gz3.安装python-2.7.2.msi
双击,...
分类:
编程语言 时间:
2014-05-14 11:13:54
阅读次数:
333