当前位置:首页 > 问答 > Linux7.5怎么执行py文件

Linux7.5怎么执行py文件

  • 2023-05-16 22:55:12

Linux7.5怎么执行py文件?

Linux7.5怎么执行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!"

热门阅读

最新文章