V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Jun 12, 2018 · 2481 views
    This topic created in 2889 days ago, the information mentioned may be changed or developed.
    现在是在 win 上用 pycharm 调试,比如有 a.py ,b.py, c.py , 调试中想每次都能重启启动全部文件。例如杀掉当前所有运行的代码后,按顺序启动,比如 c.py, b.py, a.py. win 上有什么好的实现方法么,顺便 linux 下也能提一下么,(如果没有 docker,是用 systemctl 来实现么?)
    谢谢
    2 replies    2018-06-12 15:23:11 +08:00
    linuxchild
        1
    linuxchild  
       Jun 12, 2018
    写个脚本啊:
    python a.py
    python b.py
    python c.py
    Aliencn
        2
    Aliencn  
       Jun 12, 2018
    再写一个 x.py 来启动这些脚本
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   841 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:51 · PVG 04:51 · LAX 13:51 · JFK 16:51
    ♥ Do have faith in what you're doing.