From 52c763c9203a7206306525d729b1d23151028ed0 Mon Sep 17 00:00:00 2001 From: dxj <2643100034@qq.com> Date: Thu, 30 May 2024 16:32:54 +0800 Subject: [PATCH] first commit --- utils.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 utils.py diff --git a/utils.py b/utils.py new file mode 100644 index 0000000..1f4a452 --- /dev/null +++ b/utils.py @@ -0,0 +1,5 @@ +import pymysql + +def connect(): + db = pymysql.connect(host='localhost', user='root', password='123456', database='CSS', charset='utf8') + return db \ No newline at end of file