xuxiaohui9216 发表于 2017-4-30 14:20:24

make you python file executable

If you want to call it as sleep rather than sleep.py, then you can add the .PY extension to your PATHEXT environment variable. In XP, you can edit it in:

My Computer → Properties (menu) → Advanced (tab) → Environment Variables (button) → System variables (frame)
页: [1]
查看完整版本: make you python file executable