摘要: sudo apt-get install python-mysql 假设有一数据库test1,里面有一张产品信息表products,向其中插入一条产品信息,程序如下: # -*- coding: utf-8 -*-import MySQLdbtry: conn=MySQLdb.connect(hos 阅读全文
posted @ 2017-12-21 10:03 xudebing 阅读(110) 评论(0) 推荐(0)