You're using multiprocessing map method incorrectly.According to python docs: 与map()内置函数的并行等效项(仅支持 一个可迭代的论点). A parallel equivalent of the map() built-in function (it supports only one iterable argument though).标准map: 将函数应用于所有iterable并返回列表 结果. Apply function to every item of iterable and return a list of the results. 用法示例:from multiprocessing import Pooldef f(x): return x*xif __name__ == '__main__': p = Pool(5) print(p.map(f, [1, 2, 3]))您正在寻找的是 apply_async 方法:def test(self): url = "http://nba.com" self.pool = Pool(processes=1) for x in range(0, 3): self.pool.apply_async(self.f, args=(self, url)) self.pool.apply_async(self.g, args=(self, url, 1)) sleep(10) 这篇关于Python多重处理:AttributeError:'Test'对象没有属性'get_type'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!