多重处理无法正常工作(oserror:[Errno 22]无效的参数) [英] multiprocessing not working (oserror:[Errno 22] Invalid argument )

查看:142
本文介绍了多重处理无法正常工作(oserror:[Errno 22]无效的参数)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用python3.5.2,并且我试图学习有关多处理的信息,但是它对我不起作用,它不会显示任何错误或任何东西,它可以正常完成程序,而无需执行我已经问过的任何事情如果您想查看我的问题以获取更多详细信息

i am using python3.5.2 and i am trying to learn about multiprocessing but it doesn't work for me it doesn't show me any error or any thing it just finish the program normally with out doing anything i already asked about this if you want to see my question for more details

多处理无法启动

我尝试了所有方法,当我进行搜索时,总是遇到相同的问题,我发现很多人都遇到相同的问题,每个人都告诉他们这是IDLE问题,所以我尝试了一下,然后我打开了没有IDLE的python文件,现在还好我有错误消息,但是我是初学者,所以我不明白是什么问题,这是问题所在:

i tried everything and all the time is the same problem when i searched i found lot of people having the same problem every one was telling them that its the IDLE problem so i tried and i opened the python file with out the IDLE and now thankfully i had error message but i am beginner so i couldn't understand what is the problem , here is the problem :

推荐答案

有关为什么需要if __name__ == '__main__':部分的说明,请参见编程指南.

For an explanation of why the if __name__ == '__main__': part is necessary, see Programming guidelines.

Python»文档 主模块的安全导入

这篇关于多重处理无法正常工作(oserror:[Errno 22]无效的参数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆