我想编写一个Python脚本来检查用户本地网络是否有其他当前正在运行的脚本实例。Python中的分散式网络 - 如何?
为了这个问题的目的,假设我正在编写一个只能通过命令行运行的应用程序,并且只会在本地网络上“找到”应用程序的另一个实例时更新屏幕。下面的示例输出:
$ python question.py
Thanks for running ThisApp! You are 192.168.1.101.
Found 192.168.1.102 running this application.
Found 192.168.1.104 running this application.
有什么库/项目存在,以帮助促进这样的事情?