1,使用python链接mysql # -*- coding: utf-8 -*-#
connect.py --连接到MySQL服务器import sysimport MySQLdbtry: conn = MySQLdb.connect(db =
"cookbook", host = "localh...
分类:
数据库 时间:
2014-07-22 23:11:15
阅读次数:
518
安装MongoDB 将解压所得的bin文件夹内文件部署于C:\mongodb\bin 建立数据库文件夹
C:\mongodb\data\db 准备以下内容的配置文件mongodb.cfg dbpath=C:\mongodb\data\db
#数据库路径logpath=C:\mongodb\data\...
分类:
数据库 时间:
2014-07-22 23:08:34
阅读次数:
338
要注意的是我们的PHP是嵌入在html中的 首先在php中写入链接 $conn =
mysql_connect("localhost","root","") or die("链接数据库失败");
mysql_select_db("fg19");// 选择数...
分类:
Web程序 时间:
2014-07-22 23:07:55
阅读次数:
505
MediaPlayer framework播放电影文件:iOS
sdk中可以使用MPMoviePlayerController来播放电影文件。但是在iOS设备上播放电影文件有严格的格式要求,只能播放下面两个格式的电影文件。?
H.264 (Baseline Profile Level 3.0)? M...
分类:
移动开发 时间:
2014-05-01 13:55:15
阅读次数:
424
http://udt.sourceforge.net/DT is a reliable UDP
based application level data transport protocol for distributed data intensive
applications over wide ...
分类:
其他好文 时间:
2014-05-01 13:21:54
阅读次数:
488
Pat1063代码
题目描述:
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets,
and Nt is the to...
分类:
其他好文 时间:
2014-04-29 13:44:20
阅读次数:
325
SQLite是一个轻量级的关系型数据库,在访问量不超过10万PV的中小网站中使用绰绰有余。而且使用方便,接口简单,下面从命令行和python接口两方面介绍SQLite3的基本操作。
在linux终端中,通过 sqlite3 a.db 打开a.db数据库,如果不存在会自动创建,创建一个表格:
create table users(id integer primary key,na...
分类:
数据库 时间:
2014-04-29 13:33:21
阅读次数:
489
源码:
data segment
string1 db 'Please input a number:',0dh,0ah,'$'
string2 db 0dh,0ah,'It is a number!',0dh,0ah,'$'
string3 db 0dh,0ah,'It is not a number!',0dh,0ah,'$'
data ends
code segme...
分类:
编程语言 时间:
2014-04-29 13:33:20
阅读次数:
559
sqlsever 备份和上传的一个国外软件不错,蛮方便的,小巧使用,还可以FTP上传备份数据。...
分类:
数据库 时间:
2014-04-29 13:12:20
阅读次数:
311