From 132a3dfeae2c187e92ddc0ceed01e4b8e695bcbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Wed, 21 Jun 2023 13:28:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=95=B4=E7=90=86=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 11_sql/main2.py | 2 +- ...44\232\347\272\277\347\250\213\347\274\226\347\250\213.py" | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/11_sql/main2.py b/11_sql/main2.py index 8ad4fb4..eea8b19 100644 --- a/11_sql/main2.py +++ b/11_sql/main2.py @@ -24,4 +24,4 @@ for r in result: # 关闭MySQL链接对象 conn.close() -f.close() +f.close() \ No newline at end of file diff --git "a/13_\351\253\230\347\272\247\346\212\200\345\267\247/05_\345\244\232\347\272\277\347\250\213\347\274\226\347\250\213.py" "b/13_\351\253\230\347\272\247\346\212\200\345\267\247/05_\345\244\232\347\272\277\347\250\213\347\274\226\347\250\213.py" index 1cf80a1..6ff58d7 100644 --- "a/13_\351\253\230\347\272\247\346\212\200\345\267\247/05_\345\244\232\347\272\277\347\250\213\347\274\226\347\250\213.py" +++ "b/13_\351\253\230\347\272\247\346\212\200\345\267\247/05_\345\244\232\347\272\277\347\250\213\347\274\226\347\250\213.py" @@ -4,12 +4,12 @@ import time import threading + def sing(msg): print(msg) time.sleep(1) - def dance(msg): print(msg) time.sleep(1) @@ -17,7 +17,7 @@ def dance(msg): if __name__ == '__main__': # 创建一个唱歌的线程 - sing_thread = threading.Thread(target=sing, args=("我要唱歌 哈哈哈", )) + sing_thread = threading.Thread(target=sing, args=("我要唱歌 哈哈哈",)) # 创建一个跳舞的线程 dance_thread = threading.Thread(target=dance, kwargs={"msg": "我在跳舞哦 啦啦啦"}) -- GitLab