MCPcopy Create free account
hub / github.com/TechXueXi/TechXueXi / __init__

Method __init__

SourcePackages/pdlearn/threads.py:30–35  ·  view source on GitHub ↗
(self, name, func, *args, lock=False)

Source from the content-addressed store, hash-verified

28
29class MyThread(Thread):
30 def __init__(self, name, func, *args, lock=False):
31 Thread.__init__(self)
32 self.name = name
33 self.func = func
34 self.args = args
35 self.lock = lock
36
37 def run(self):
38 print("开启: " + self.name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected