标签:root test sel xxx font pass dict ORC passwd
结果:(1, ‘11‘)
self.conn = pymysql.connect(
host=‘xxx‘,
port=3806,
user=‘root‘,
passwd=str(123456),
db = ‘test‘,
charset = "utf8"
)
结果:{‘id‘: 1, ‘name‘: ‘11‘}
self.conn = pymysql.connect(
host=‘xxx‘,
port=3806,
user=‘root‘,
passwd=str(123456),
db = ‘test‘,
charset = "utf8",
cursorclass=pymysql.cursors.DictCursor
)
标签:root test sel xxx font pass dict ORC passwd
原文地址:https://www.cnblogs.com/gaoxialian/p/12762518.html