给定一个函数对象,我该如何获得它的签名?例如,对于:
def myMethod(firt, second, third='something'):
pass
Run Code Online (Sandbox Code Playgroud)
我想得到"myMethod(firt, second, third='something')".
在pylint中,我使用此命令--reports=n禁用报告,但现在我没有看到更多的全局评估.
是否可以仅启用全局评估?
在我的课上我运行4个过程.
from multiprocessing import Process
procs = (
Process(target=ClassOne, name='ClassOne'),
Process(target=ClassTwo, name='ClassTwo'),
Process(target=ClassThree, name='ClassThree'),
Process(target=ClassFour, name='ClassFour'),
)
for p in procs:
p.daemon = False
p.start()
Run Code Online (Sandbox Code Playgroud)
当我的一个孩子的过程死了,我希望得到通知,所以我可以杀死另一个和我自己.