#用进程算数的阶乘
from multiprocessing import Process
class MyProcessJC(Process):
def run2(self,n):
totle=1
for j in range(1,n+1):
totle*=j
print(totle)
if __name__ == "__main__":
num = input("please enter a number: ")
num = int(num)
p = MyProcessJC()
p.start()
p.run2(num)
兄弟连学python
Python学习交流、资源共享群:563626388 QQ