Linux7.5怎么执行py文件
- 2023-05-16 22:55:12
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!"
声明:本文内容及图片来源于读者投稿,本网站无法甄别是否为投稿用户创作以及文章的准确性,本站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。请将本侵权页面网址发送邮件到583666585@qq.com,我们会及时做删除处理。