V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
smdbh
V2EX  ›  Python

求多个 py 关联启动的方法

  •  
  •   smdbh · 2018-06-12 14:36:27 +08:00 · 1858 次点击
    这是一个创建于 2116 天前的主题,其中的信息可能已经有所发展或是发生改变。
    现在是在 win 上用 pycharm 调试,比如有 a.py ,b.py, c.py , 调试中想每次都能重启启动全部文件。例如杀掉当前所有运行的代码后,按顺序启动,比如 c.py, b.py, a.py. win 上有什么好的实现方法么,顺便 linux 下也能提一下么,(如果没有 docker,是用 systemctl 来实现么?)
    谢谢
    2 条回复    2018-06-12 15:23:11 +08:00
    linuxchild
        1
    linuxchild  
       2018-06-12 15:22:26 +08:00
    写个脚本啊:
    python a.py
    python b.py
    python c.py
    Aliencn
        2
    Aliencn  
       2018-06-12 15:23:11 +08:00
    再写一个 x.py 来启动这些脚本
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3002 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:57 · PVG 22:57 · LAX 07:57 · JFK 10:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.