ITeye博客

python

共 5 篇文章

Anaconda使用

1.python 数据分析包 Anaconda-2.3.0-Windows-x86 2. http://www.afenxi.com/page/4?s=%E5%B0%8F%E7%99%BD%E5%AD%A6%E7%BB%9F%E8%AE%A1

2016-11-03 16:47 · python

多线程测试对比infobright取数

#! /usr/bin/env python #coding=utf-8 import threading,sys import random import time from Queue import Queue import MySQLdb,time,datetime isFinish=False count_num_sql='''select count(1) t from fact_user_msg ''' #con_sql='''where ( d_o_lastordertime>='2012-06-19' and s_usr_level>60 and i_u_verified=1…

2013-07-30 17:26 · python · sql · mysql

python django helloworld2--tempate

继helloworld 1.在项目myFirstDjango创建下template文件夹,并修改setting.py TEMPLATE_DIRS = (中加入: "D:/python/djangoProject/myFirstDjango/template", 2.创建base.vm与hello.vm 内容分别如下: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-str…

2012-08-30 23:09 · python

python django helloworld

1.下载python-2.7.msi、Django-1.3.tar.gz 默认安装python2.7配置好python_home,安装django,解压运行python install 2.下载httpd-2.2.22-win32-x86-no_ssl.msi、mod_wsgi-win32-ap22py27-3.3.so http://httpd.apache.org http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32-ap22py27-3.3.so 默认安装apache、copy mod_wsgi-wi…

2012-08-30 00:36 · python

python mongodb测试

1.下载pymongo-1.11.win32-py2.6.exe,因python为2.6,安装 2.下载mongodb-win32-i386-1.8.1解压 3.cmd下运行: J:\soft\mongodb-win32-i386-1.8.1\mongodb-win32-i386-1.8.1\bin\mongod --dbpath=J:\soft\mongodb-win32-i386-1.8.1\mongodb-win32-i386-1.8.1\data\db 看到,最后有listening on port 28107,就正常启动服务了 4.新起cmd窗口J:\soft\mongodb-wi…

2011-07-01 12:34 · python