标签:host color 记录 passwd connect cal import int print
import mysql.connector conn= mysql.connector.Connect( host=‘localhost‘, user=‘root‘, passwd=‘admin‘, database=‘testcode‘ ) print(‘1.‘,conn) cmd = conn.cursor() # 光标行 cmd=conn.cursor() cmd.execute(‘select * from test‘) print(‘5.‘,cmd.fetchmany(5))
标签:host color 记录 passwd connect cal import int print
原文地址:https://www.cnblogs.com/cy-zjs/p/13509533.html