Linux75怎么执行py文件?
#!/usr/bin/env python #注意上面这一行必须是第一行顶头写。 # python file example. # assume we name this file as "hello.py" # use shell command "chmod +x hello.py" to make this file executable. # then you are able to run it by typing "./hello.py" print "Hello this is from python!"
Copyright © 广州京杭网络科技有限公司 2005-2024 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有