2024-04-26 03:48:46 发布
网友
我想用Python在系统中的一个进程(当前进程)和另一个进程之间建立管道或队列。我要怎么做?我知道当前进程ID和其他进程ID。 我在32位Windows上工作。在
像这样。在
python one_process.py | python the_other_process.py
让操作系统为你做这项工作。在
在one_process.py中,您将写入sys.stdout。在
one_process.py
sys.stdout
在the_other_process.py中,您从{}读取。在
the_other_process.py
就这样。在
像这样。在
让操作系统为你做这项工作。在
在
one_process.py
中,您将写入sys.stdout
。在在}读取。在
the_other_process.py
中,您从{就这样。在
相关问题 更多 >
编程相关推荐