logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

cx_Oracle 中插入blob、date類型資料

<br />#blob<br />import cx_Oracle<br /><br />db = cx_Oracle.connect('delphitest/delphitestpass@yyora85')<br />cursor = db.cursor()<br />f1 = open(r'd:/img.jpg','rb')<br />data = f1.read()<br />pic_dat

#oracle
Linux 下安装Eclipse完全攻略

                      Linux 下安装Eclipse完全攻略 关键词:Linux redhat ubuntu tomcat J2SE J2EE  1. ubuntu 下安装Eclipse     1.1   在

#eclipse#linux#tomcat +1
How to use Django with Apache and mod_python

os: ubuntu 10.04django: version 2.5apache: 2python: 2.61. install python, django, apache, mod_pythonapt-get install2.edit h

#django#apache#python +1
dict_cn

#!/usr/bin/env python#coding=utf-8from xml.dom import minidomimport urllib, urllib2import sys, osimport pygameimport prasexmlclass

#xml
python pdf 合並

# -*- coding: utf-8 -*-#!/usr/bin/env pythonimport sysimport osfrom pyPdf import PdfFileWriter, PdfFileReader# 这里简化了,可以使用walk,搜索出某目录

#python
python socket get http

需要注意http1.1和http1.0的區別http1.1要加上Host才可以, http1.0則不用#!/usr/bin/env pythonimport socketsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)sock.connect(('172.17.9.9', 80))#sock.send('GET /

#python
tornado chat server

為了加深對tornado的理解,寫了一個tornado chat server, 基於tornado tcpserver,server的主要作是接收client發送的msg,並把所接收到的msg broadcast到所有的client#!/usr/bin/env pythonfrom tornado.netutil import TCPServerfrom tornado.io

python select實現非阻塞socket

#!/usr/bin/env python# -*- encoding: utf-8 -*-import socketimport selecthost = ""port = 50000s = socket.socket(socket.AF_INET,sock

#python
到底了