84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
现在有2个独立程序1.A2.B
程序A要获取 B 安装路径。如何用最简单有效的方法?这是几个简单的方案,但是可能涉及到权限和丢失之类的问题。1.A程序 读取B的注册表安装目录.2.A程序 读取我的文档 下的 Ini 配置文件
还有什么好的方法吗?最好是CMD这种 命令行即实获取最好(最好不要涉及文件之类的资源)
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
For inter-process communication IPC, you can use socket communication
import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((env.host, 34567)) time.sleep(2) sock.send('1') print sock.recv(1024) sock.close()
Both programs can write receiving and sending functions
For inter-process communication IPC, you can use socket communication
Both programs can write receiving and sending functions