Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了一个包含 ActiveX 控件(ocx)的 python 应用程序,以使用 win32com 库通过串行端口打印到爱普生收据打印机。没关系 !!!但我的主应用程序在另一台服务器上。我如何在本地与我的应用程序通信?
您需要的是一个远程过程调用框架。有关 Python 中的各种解决方案,请参阅此问题。
解决了!!!我已经在本地 PC 上使用名为SimpleHTTPServer的 python 模块解决了这个问题,该模块包含我的函数并调用我的 ocx 组件!