关于python编辑时的"#!/usr/bin/python"

#!/usr/bin/python 这一行代码是用来干什么的? 若是没有它,好像对脚本功能也没什么影响。 可是它实际上是用来指定用什么解释器运行脚本以及解释器所在的位置。python 以test.py为例,脚本内容以下:web def test(): print ‘hello, world’shell if name == “main“: test()apache 运行脚本: python tes
相关文章
相关标签/搜索