1

对于 Linux 上的 python,我#!/usr/bin/python -tt用于发出错误。我如何在 Windows 7 上执行此操作?我试过这个:

 #!c:\python33\python -tt

这个对吗 ?

4

1 回答 1

0

Windows 不支持“hashbang”语法。您可以通过 Vinay Sajip 的plauncher获得一些支持,但我不知道这是否支持添加参数。

也许可以在 ftype 设置中添加参数。看到这个问题

如果不是,您可能必须创建一个 .bat 文件来添加参数并关联该 bat 文件。

于 2013-07-03T04:47:37.933 回答