recherche

Maison  >  Questions et réponses  >  le corps du texte

bash - OS X :shell打开多个终端,运行不同的python文件

运行./run.sh

它会打开三个终端分别运行a.py,b.py,c.py

os x 和 ubuntu 分别怎么写?

大家讲道理大家讲道理2892 Il y a quelques jours375

répondre à tous(1)je répondrai

  • 天蓬老师

    天蓬老师2017-04-18 09:14:54

    Je ne comprends pas très bien vos besoins. Devez-vous ouvrir trois « interfaces de terminal visuel » ?
    Si vous souhaitez simplement que trois fichiers soient exécutés en même temps, écrivez trois lignes
    python a.py &
    python b.py &
    python c.py &
    & à indique que cette commande est en arrière-plan Exécution, c'est-à-dire exécution en trois processus

    répondre
    0
  • Annulerrépondre