从 Windows 中的提示运行 python 脚本 [英] Run a python script from the prompt in windows

查看:31
本文介绍了从 Windows 中的提示运行 python 脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
我如何运行Windows 7 命令提示符中的 python 程序?

这是这个问题的后续:在windows中运行python脚本.

This is a follow-up to this question: Run a python script in windows.

我将如何做相当于

`$ ./checksum.py <folder>

在 Windows 中?注意,checksum.py 文件是这样开始的:

in Windows? Note, the checksum.py file starts thus:

#!/usr/bin/env python

推荐答案

对我来说,它只是直接调用脚本的名称,例如<代码>>myscript.py.

For me, it works just to invoke the name of the script directly, e.g. > myscript.py.

这篇关于从 Windows 中的提示运行 python 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆