一、数据库连接
conn = MySQLdb.connect(host='localhost', user='root', passwd='', db='database1', port=3306, charset='utf8')
cur = conn.cursor()
posted on 2015-11-03 20:07 _Ritchie 阅读(137) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 _Ritchie Powered by .NET 8.0 on Kubernetes