From f4410a15ef133960634499753d937234ecd8e572 Mon Sep 17 00:00:00 2001 From: hi_world <2025639608@qq.com> Date: Mon, 3 Aug 2026 18:30:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BA=BF=E7=A8=8B=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E7=9A=84=E7=88=B6=E7=B1=BB=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E5=86=99=E6=B3=95=E4=B8=BAPython3=E6=8E=A8=E8=8D=90=E7=9A=84su?= =?UTF-8?q?per()=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 把一处老式写法改成了前一章节统一教的新式写法, 老式写法:threading.Thread.__init__(self, name=threadname) 现代写法:super().__init__(name=threadname) 功能完全等价,无逻辑变更,仅优化写法 --- Article/PythonBasis/python13/2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Article/PythonBasis/python13/2.md b/Article/PythonBasis/python13/2.md index d3329ce5..6240e792 100644 --- a/Article/PythonBasis/python13/2.md +++ b/Article/PythonBasis/python13/2.md @@ -339,7 +339,7 @@ import threading class mThread(threading.Thread): def __init__(self, threadname): - threading.Thread.__init__(self, name=threadname) + super().__init__(name=threadname) def run(self): # 使用全局Event对象