1.ODBC连接mysql 首先ODBC是什么呢?开放数据库互连(Open Database Connectivity,ODBC)是微软公司开放服务结构(WOSA,Windows Open Services Architecture)中有关数据库的一个组成部分,它建立了一组规范,并提供了一组对数据库...
分类:
数据库 时间:
2014-07-18 21:13:25
阅读次数:
407
#coding=gbk'''Created on 2014-5-7'''import os.pathinputPath = './input.txt'outPath = './out.txt'bufferSize = 10inputFile = open(inputPath, 'rb')outFil...
分类:
编程语言 时间:
2014-07-18 20:34:41
阅读次数:
246
随着网络技术,虚拟化技术的发展,越来越多的高级网络设备被加入了到了 Linux 中,这些设备在 UOS 中起到了广泛而关键的作用,包括 Open vSwitch、TAP 设备、Veth 设备等等,梳理这些设备的关系和如何发挥作用无疑将对我们维护、理解 UOS 系统有重要的作用。下面我们以这样一个场景...
分类:
其他好文 时间:
2014-07-18 20:07:02
阅读次数:
470
创建testimg.pyimport sysfrom PIL import Image img = Image.open(sys.argv[1]).convert('YCbCr') w, h = img.size data = img.getdata() cnt = 0 ...
分类:
编程语言 时间:
2014-07-18 19:19:52
阅读次数:
358
系统中用javascript中的window.open后,页面返回了一个[object]。因为系统的原因,必需使用href="javascript:window.open()"这样的格式。所以只能通过以下办法解决。解决window.open后返回object的错误window.open()只在js的...
用例:f = os.popen("%s %s %s" % ("pkg-config", " ".join(args), mod))popen(...) popen(command [, mode='r' [, bufsize]]) -> pipe Open a pipe to/from a com....
分类:
编程语言 时间:
2014-07-18 00:00:03
阅读次数:
392
1This worked for me:Make a copy of the .xib in the Finder.Open the copied file in a text editor.Change "com.apple.InterfaceBuilder3.CocoaTouch.XIB" to...
分类:
其他好文 时间:
2014-07-17 23:25:55
阅读次数:
275
1.休眠函数import timetime.sleep(n)n可以是整数或者小数,单位是秒2.打开文件函数open('n','m',k)n是文件路径,如果只有文件名,则是py程序所在文件夹m是打开赋予的权限k是缓冲,0表示不用缓冲,其他数字表示缓冲数量r默认模式,文本模式读rb 二进制文件w或wt ...
分类:
编程语言 时间:
2014-07-17 18:10:58
阅读次数:
249
POCO是什么?
看官网说明:
Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server, mobile and embedded systems.
...
分类:
其他好文 时间:
2014-07-17 16:13:45
阅读次数:
352
首先在php页面生成xml文档并输出,然后在js中处理xml数据: var xhr = createXhr(); xhr.onreadystatechange = getinfo; xhr.open("get",'./07.php'); xhr.send(n...
分类:
其他好文 时间:
2014-07-17 14:22:28
阅读次数:
264