parent
e5d7800776
commit
4633c46bd7
@ -0,0 +1,6 @@
|
|||||||
|
import pymysql
|
||||||
|
|
||||||
|
def connect():
|
||||||
|
conn = pymysql.connect(host='localhost', user='root', password='zouzhenyu2003', database='library')
|
||||||
|
cursor = conn.cursor()
|
||||||
|
return cursor, conn
|
Loading…
Reference in new issue