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.
我正在开发一个超级简单的套接字程序,我有客户端代码和服务器代码。如何同时运行这两个 .py 文件以查看它们是否有效?
您可以同时运行多个 IDLE/Python shell 实例。因此,打开 IDLE 并运行服务器代码,然后再次打开 IDLE,这将启动一个单独的实例,然后运行您的客户端代码。