[英]How to run multiple programs in different consoles in Python
I have two folders, 1
and 2
.我有两个文件夹,
1
和2
。 Each folder has a Python file with the same name: 220_beta_1e-2_47_53ND.py
.每个文件夹都有一个 Python 同名文件:
220_beta_1e-2_47_53ND.py
。 How do I run both the Python files simultaneously on different consoles?如何在不同的控制台上同时运行 Python 文件? I mostly use Spyder.
我主要使用 Spyder。
on powershell (replace XYZ with your python version)在 powershell 上(将 XYZ 替换为 python 版本)
Invoke-Item C:\PythonXYZ\python.exe pathtoscript1; Invoke-Item C:\PythonXYZ\python.exe pathtoscript2;
or rather create a third script in python that launches 2 processes或者更确切地说,在启动 2 个进程的 python 中创建第三个脚本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.