python - 一次打开多个python程序
问题描述
我目前正在尝试在 python 中创建一个同时打开其他 python 文件的程序。但这似乎不起作用。我正在尝试运行的程序是 While True 循环,因此它们永远运行,因此它只运行第一个,同时等待它完成运行下一个。我该怎么做才能让他们都跑?
我的程序运行所有这些的代码如下。
对不起,如果这没有多大意义
os.system("python program1.py")
os.system("python program2.py")
os.system("python program3.py")
os.system("python program4.py")
os.system("python program5.py")
os.system("python program6.py")
os.system("python program7.py")
解决方案
推荐阅读
- javascript - 继承放置在另一个文件中的子类 (CoffeeScript)
- html - 由于不支持其 MIME 类型,样式表未显示,但调试时 MIME 类型显示为空白
- powershell - 使用 powershell 通过 powershell 创建和设置安全性
- android - OSM 地图在 android 上看起来乱七八糟
- exchange-server - 用于 Dynamics 365 for Customer Engagement Onpremise 与 Exchange Online 的 S2S 身份验证的证书已过期
- php - Symfony 4 - 功能测试 - 尽管 followRedirects 为真,但客户端不遵循重定向
- c# - 使用 .NET 生成 HTML 电子邮件
- java - 为什么不是我的所有按钮都在 android studio 中收到点击输入?
- python - python中是否有等效于get()的方法?
- python - 使用python从HTML页面获取数据