提交 132a3dfe 编写于 作者: 檀越@新空间's avatar 檀越@新空间 🐭

fix:整理知识点

上级 289f2d80
......@@ -24,4 +24,4 @@ for r in result:
# 关闭MySQL链接对象
conn.close()
f.close()
f.close()
\ No newline at end of file
......@@ -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": "我在跳舞哦 啦啦啦"})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册