第一种,将浏览器产生的session会话保存在磁盘上的主程序。
#-*- coding:utf-8 -*-
'''
@author:cuiruiqiang
@date:2014-12-3
@filename:CountSession.py count session's number
'''
import web
web.config.debug = False...
分类:
编程语言 时间:
2014-12-04 23:17:03
阅读次数:
246
编译C++的和编译C语言的命令不同。编译C++,应当先安装g++。然后可以用#g++filename.cpp-ofilename进行编译编译C语言是用#gccfilename.c-ofilename编译内核过程中缺少ncursesliabraries文件问题:Installncurses(ncurs...
分类:
系统相关 时间:
2014-12-04 22:59:15
阅读次数:
176
<?phpdefine('DIR_SECURE_FILENAME', 'default.html');define('APP_PATH','./index/'); //项目路径require './ThinkPHP/ThinkPHP.php'; //引用文件
分类:
Web程序 时间:
2014-12-04 19:33:45
阅读次数:
178
简单示例
import sys
import ctypes
import logging
import logging.handlers
reload(sys)
sys.setdefaultencoding('utf-8')
LOG_FILE = 'test_log'
logging.basicConfig(
filename = LOG_FILE,
...
分类:
编程语言 时间:
2014-12-04 18:08:17
阅读次数:
221
more +x filename用于查看filename从x行开始sed -n '100,120p' filename用于打印从100-120行wc -l filename统计行数def func(*t) 元组def func(**t) 字典refhttp://www.pythoner.com/4....
分类:
编程语言 时间:
2014-12-04 17:36:50
阅读次数:
180
#!/bin/bash filename=`date -d today +"%Y%m%d"` CU=home/pboc/htsys/datafile/upload/cu BAK=home/pboc/htsys/datafile/upload/cubak/$filename REC=home/pboc/htsys/datafile/rec mkdir -p ?/$BAK cd /$CU w...
分类:
其他好文 时间:
2014-12-04 16:02:14
阅读次数:
188
下面写下用pca对数据进行降维处理的过程:Python源代码如下: 1 from numpy import *; 2 def loadDataSet(fileName,delim='\t'): 3 # 打开文件 4 fr=open(fileName); 5 """ 6 >>>...
分类:
编程语言 时间:
2014-12-04 13:49:27
阅读次数:
303
1.imread函数首先,我们看imread函数,可以在OpenCV官方文档中查到其原型如下:Mat imread(const string& filename, int flags=1 );其中,第一个参数,const string&类型的filename,填我们需要载入的图片路径名。在Windo...
分类:
Windows程序 时间:
2014-12-04 11:56:06
阅读次数:
1066
一、代码如下 1 int code = int.Parse(this.TextBox1.Text);//图片编码 2 string value = this.FileUpload1.PostedFile.FileName.ToString();//图片路径 3 st...
分类:
数据库 时间:
2014-12-04 11:32:54
阅读次数:
240
1.//弹出对话框.点击转向指定页面Response.Write("");Response.Write("");2.//弹出对话框Response.Write("");3.//删除文件string filename ="20059595157517.jpg";pub.util.DeleteFile(...
分类:
Web程序 时间:
2014-12-04 09:54:59
阅读次数:
167