简体   繁体   English

我怎么能运行两个python应用程序?

[英]How can I run both python apps?

I have to apps which depend on each other. 我必须依赖彼此的应用程序。 Both are part of the same project: 两者都是同一个项目的一部分:

  1. app.py - that supports interaction with the user app.py - 支持与用户的交互
  2. download.py - that supports sending and receiving files download.py - 支持发送和接收文件

How can I run both using terminal (or PyCharm)? 如何使用终端(或PyCharm)运行?

你可以使用bash &&运算符,如果需要第一个成功完成,然后运行第二个。

python app.py && python download.py

Either run these two commands in separate terminals: 在不同的终端中运行这两个命令:

python app.py
python download.py

Or run this command in a single terminal ( & means "run in background"): 或者在单个终端中运行此命令( &表示“在后台运行”):

python app.py & python download.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何创建一个 Docker 镜像来运行 Python 和 R? - How can I create a Docker image to run both Python and R? 我可以用python编写我的应用程序,然后从C运行它们吗? - Can I write my apps in python and then run them from C? 如何使用 python 运行 matplotlib 和 PyQt5 Video - How can run both of matplotlib and PyQt5 Video with python 如何在Pika中同时运行消费者和发布者? - How can I run both a consumer and a publisher at the same time in Pika? 我怎样才能同时运行 tkinter 和看门狗 - how can i run both tkinter and watchdog together 如何在Python 2.7和Python 3.3上安装evdev? - How can I install evdev on both Python 2.7 and Python 3.3? Python 应用程序可以在 iOS 设备上运行吗? - Can Python apps run on iOS devices? 如何在由 python 编写的 Windows 和 Android 上运行游戏。 如何将 .py 文件更改为 .exe 文件。 我可以在 android 上使用 .exe 文件吗 - how can I run the game on both Windows and Android writen by python. how to change .py file to .exe file. can i use .exe file on android 如何在heroku上从python查找当前应用程序的名称? - How can I find the current apps name from python on heroku? 如何在Windows上使用python构建Android应用 - How can I build android apps using python on Windows
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM