1. python connect postgrehttps://wiki.postgresql.org/wiki/Using_psycopg2_with_PostgreSQL Using psycopg2 with PostgreSQLimport psycopg2import pprin...
分类:
数据库 时间:
2015-01-28 13:00:13
阅读次数:
172
#coding=gbk__author__ = 'libo'import osimport timeimport datetimeimport tracebackfrom win32com.client import DispatchEx, constants, pythoncomWORD_NAME...
分类:
编程语言 时间:
2015-01-23 10:40:47
阅读次数:
428
一、安装xlrd模块 到python官网下载http://pypi.python.org/pypi/xlrd模块安装,前提是已经安装了python 环境。二、使用介绍 1、导入模块 import xlrd 2、打开Excel文件读取数据 data = xlrd.open_workbook('exce...
分类:
编程语言 时间:
2015-01-21 23:46:26
阅读次数:
280
# coding=utf-import MySQLdb#查询数量 def Count(cur):count=cur.execute( 'select * from Student' )print 'there has %s rows record' % count#插入 def Insert(cur...
分类:
数据库 时间:
2015-01-12 14:22:58
阅读次数:
160
【安装】安装MySQL安装MySQL不用多说了,下载下来安装就是,没有特别需要注意的地方。一个下载地址:点击打开链接【样例】?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748...
分类:
数据库 时间:
2015-01-09 09:07:37
阅读次数:
199
import time,pymysqltry:#获取一个数据库连接,注意如果是UTF-8类型的,需要制定数据库conn=pymysql.connect(host='localhost',user='root',passwd='123456',db='test',port=3306,charset='...
分类:
数据库 时间:
2015-01-08 17:28:43
阅读次数:
208
一些资料:http://blog.csdn.net/sunny2038/article/details/9057415一个挺好的博客http://docs.opencv.org/trunk/doc/py_tutorials 官方python的 tutorialopencv for python的主干...
分类:
编程语言 时间:
2015-01-02 22:20:27
阅读次数:
313
PYTHON 操作数据库有一些基本的操作,比较繁琐,本文,用了一个封装的数据库操作
#!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in c...
分类:
数据库 时间:
2014-12-26 13:10:04
阅读次数:
347
http://blog.csdn.net/tenfyguo/article/details/7476306
proc文件系统
/proc文件系统是一个伪文件系统,它只存在内存当中,而不占用外存空间。它以文件系统的方式为内核与进程提供通信的接口。用户和应用程序可以通过/proc得到系统的信息,并可以改变内核的某些参数。由于系统的信息,如进程,是动态改变的,所以用户或应用程序读取/proc目录中的...
分类:
其他好文 时间:
2014-12-25 18:24:38
阅读次数:
205
每天学习一点点,C#写腻了,最近在写NODE,PYTHON,SWIFT,丰富自己的开发世界;python更多的是作为胶水语言,做一些自动化的脚本,网络任务,数据库任务,定时任务;安装MysqlDB要想使python可以操作mysql就需要MySQL-python驱动,它是python操作mysql必...
分类:
数据库 时间:
2014-12-19 15:30:30
阅读次数:
160