【问题标题】:Where to enter python scripts?在哪里输入python脚本?
【发布时间】:2020-08-15 23:54:36
【问题描述】:

python -m cProfile -s time circuit.py < tests/5devadas13.in

我在哪里可以在 python 中输入这些东西?我没有任何IDE。我用闲置。我试过在 cmd 和 idle 中输入它,但没有工作

【问题讨论】:

    标签: python scripting command


    【解决方案1】:

    Python 可能不在 PATH 中。将带有 python(.exe) 的目录添加到您的 PATH:https://superuser.com/questions/143119/how-do-i-add-python-to-the-windows-path

    【讨论】:

    • 我使用的是 Windows 10
    • 我已将 python 添加到路径中。它在我输入 python 时运行 python 但是当我给出这个命令 python -m cProfile -s time circuit.py
    • tests/5devadas13.in 看起来不像 cmd 中的有效路径,它使用 `` 作为分隔符。
    • 发现文件不在我当前目录中的问题。
    猜你喜欢
    • 2014-08-13
    • 2020-04-09
    • 2022-07-06
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 2011-03-27
    • 1970-01-01
    相关资源
    最近更新 更多