From 27d5e62e41965b8e85c7297923e17775b8318631 Mon Sep 17 00:00:00 2001 From: pbqs4lvtu <1779073549@qq.com> Date: Wed, 17 Apr 2024 14:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BA=86=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E4=B8=AA=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pymysqlt.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 pymysqlt.py diff --git a/pymysqlt.py b/pymysqlt.py new file mode 100644 index 0000000..86e313c --- /dev/null +++ b/pymysqlt.py @@ -0,0 +1,6 @@ +import pymysql +con=pymysql.connect(host="localhost",user="root",password="888888") +c=con.cursor() +c.execute("show databases") +r=c.fetchall() +print(r) \ No newline at end of file