简体   繁体   English

通过 python 在两个 python 程序之间传输数据

[英]Transfer Data between two python program by python

I have two simple programs written by Python, do not care they, I searching for a way to transfer data between those app and find two module socket and multiprocessing.connection which I found the second one from a question which is this我有两个由 Python 编写的简单程序,不关心他们,我正在寻找一种在这些应用程序之间传输数据的方法,并找到两个模块socketmultiprocessing.connection ,我从一个问题中找到了第二个, 这就是

But I did not find much information about this issue and I do not know at all which of these modules are more widely used or whether there is a better module which also has a good document?但是我没有找到关于这个问题的太多信息,我完全不知道这些模块中哪个使用更广泛,或者是否有更好的模块也有一个好的文档?

某物

It's true that I can import programs together But I need to expand this connection between two computers using a LAN cable确实可以一起导入程序 但是我需要用网线在两台电脑之间扩展这个连接

Does anyone know exactly what I'm looking for so he can guide me first and tell me what keywords to use for the search?有谁确切地知道我在寻找什么,所以他可以先指导我并告诉我要使用哪些关键字进行搜索?

So Simple You need to use ROS for this application ROS is Robotic Operation System that we use it in Robots but it's usage is transferring data's between two or multiple files together and managing our project in robotic systems, Even cpp with python files.如此简单您需要为此应用程序使用 ROS ROS 是机器人操作系统,我们在机器人中使用它,但它的用途是在两个或多个文件之间一起传输数据并在机器人系统中管理我们的项目,甚至是带有 python 文件的 cpp。

See this link for more: https://www.ros.org/有关更多信息,请参阅此链接: https://www.ros.org/

Also you can write your final data in a text document and check the document context with your second file and also reverse.您还可以在文本文档中写入最终数据,并使用第二个文件检查文档上下文并反转。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM