Python服务器开发知识摘要

一、 【链接mysql】 1用MySQLdb模块操做MySQL数据库很是方便。示例代码以下:python import os, sys import MySQLdb try: conn MySQLdb.connect(host=’localhost’,user=’root’,passwd=’’,db=’address’ except Exception,e: print e
相关文章
相关标签/搜索