欢迎分享,转载请注明来源:内存溢出
#!/usr/bin/env python\x0d\x0a#注意上面这一行必须是第一行顶头写。\x0d\x0a# python file example. \x0d\x0a# assume we name this file as "hello.py"\x0d\x0a# use shell command "chmod +x hello.py" to make this file executable. \x0d\x0a# then you are able to run it by typing "./hello.py"\x0d\x0aprint "Hello this is from python!"linux下python解释器的后缀有py、pyc、pyo、pyi、pyw、pyd、pyx等。实际上用python+文件的方式运行代码,只要文件内容相同,后缀名是不重要的,也就是说上面的运行结果都是等价。
赞
(0)
打赏
微信扫一扫
支付宝扫一扫
linux终端下如何进行C语言编译
上一篇
2023-04-15
请高手指点在linux系统中如何配置DNS
下一篇
2023-04-15
评论列表(0条)