【发布时间】:2011-07-28 09:18:02
【问题描述】:
(WindowsXP 上的 Python2.7-3.2) 我曾经使用 sys.arg[0],但现在我从批处理脚本执行它(用于确定用户是否有 python)
谢谢^^
~ps:如果你知道更好的方法来判断用户是否有Python
【问题讨论】:
-
嗯?如果您正在运行 Python 脚本,那么显然用户拥有 Python!?
标签: python windows python-3.x python-2.7