import time
from multiprocessing import process
num=1
def run1():
global num
num=2
print('我是run1函数',num)
if name == 'main':
process(target=run1).start()
print('over')
print(num)
代码报错
报错内容:Traceback (most recent call last):
File "C:\Users\Administrator\PycharmProjects\pythonProject\进进成.py", line 8, in
process(target=run1).start()
TypeError: 'module' object is not callable