gpt4 book ai didi

python - 在 Python 中打开从 Linux 到 Windows 的 URL 命令

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:35:33 26 4
gpt4 key购买 nike

我有一台 Linux PC(运行 Ubuntu)和一台 Windows 7 PC,它们连接到同一个网络。我想在 Linux PC 上用 Python 编写一个脚本,“告诉”Windows PC 打开一个特定的 URL。我知道 Windows 中的命令是例如“start www.google.com”,所以我想我必须使用 Python 脚本以某种方式将此命令从 Linux 发送到 Windows PC。提前感谢您的任何建议!

最佳答案

那么,PC 是如何连接的,局域网、广域网、蓝牙?我假设他们使用局域网。在这种情况下,您可以使用套接字库将数据从一台 PC 发送到另一台。Linux 将作为客户端,Win7 将作为服务器,例如查看此链接:Server/Client implementation

关于python - 在 Python 中打开从 Linux 到 Windows 的 URL 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19839142/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com