当然这里指的是在linux或者unix下,像写bash脚本那样

#!/usr/bin/python

print('The Bright Side ' + 'of Life...')

反正我建议就算一开始也不要用解释器,脚本这个玩具要比解释器那个玩具好太多,解释器敲的命令留不下来。

#! 是一个标识吧,后面接的路径指明了执行脚本的解释器

[tuhooo@localhost python_programming]$ ls
first_scripts.py
[tuhooo@localhost python_programming]$ chmod u+x first_scripts.py
[tuhooo@localhost python_programming]$ ./first_scripts.py
The Bright Side of Life...

最新文章

  1. prototype.js源码
  2. 关于asp.net impersonation的一些谣传
  3. CentOS6.4安装Smokeping节点监控软件
  4. PHP String函数分类
  5. samba服务设置,Linux系统和Windows文件共享
  6. poj2299解题报告(归并排序求逆序数)
  7. MongoDB使用记录
  8. CentOS 配置 ssh
  9. warning: directory not found for option ' '
  10. debian上安装lua编辑器
  11. 1000: A+B Problem(NetWork Flow)
  12. ios富文本的简单使用 AttributedString
  13. 【C++小白成长撸】--N阶幻方(魔阵)矩阵
  14. Java线程池带图详解
  15. Dynamics CRM 给视图配置安全角色
  16. Hbase技术笔记
  17. Spring Boot 数据库连接池 Druid
  18. Python实现Plugin
  19. 手机视频编辑软件APP
  20. POJ - 2299 Ultra-QuickSort(归并排序)

热门文章

  1. BZOJ1709超级弹珠
  2. Html.AntiForgeryToken 防止伪造提交
  3. DB迁移:从SQL Server 2005到MySQL
  4. DB2数据库报 [SQL0805N Package "NULLID.SQLLD003" was not found.]
  5. react 使用antd导航组件实现事件传递并局部刷新DOM
  6. C++多线程(POSIX)
  7. Hibernate search与Lucene包异常学习心得
  8. 2018年东北农业大学春季校赛 F wyh的集合【思维】
  9. 解决: g++: internal compiler error: Killed (program cc1plus)
  10. oracle的锁与并发机制