推荐学习书目
› 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
cshcool
V2EX  ›  Python

cmd 中执行python XXXX.py 命令 无效

  •  
  •   cshcool · Jul 11, 2012 · 8508 views
    This topic created in 5196 days ago, the information mentioned may be changed or developed.
    如题,之前还是可以默认打开python的idle的,可能被我折腾了一阵子把py文件的默认打开方式改来改去后,现在在cmd窗口中执行 python XXXX.py 的命令没有任何反映,环境变量中也有添加 python.exe的路径。

    请问这是怎么回事呢?
    2 replies  •  1970-01-01 08:00:00 +08:00
    jimmykuu
        1
    jimmykuu  
       Jul 11, 2012   ❤️ 1
    直接在控制台中输入python呢?能打开交互环境不?如果能打开,说明环境变量没问题。
    看你的情况好像是XXXX.py没有任何输出,看上去没有任何反应。
    armoni
        2
    armoni  
       Jul 11, 2012   ❤️ 1
    没报错的话,检查下代码是否有输出,命令有问题直接报不存在此命令
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2213 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 06:40 · PVG 14:40 · LAX 23:40 · JFK 02:40
    ♥ Do have faith in what you're doing.