您的位置:首页 > 运维架构 > Shell

Python/Perl/Shell - 注释-声明-运行

2014-11-27 16:43 337 查看
Something really basic:

开头:

Shell

 #!/bin/bash

perl: 

#!/usr/bin/perl

python: 

#! usr/bin/python

注释:
perl

单行: # 

多行:

=pod

comments

=cut
python

单行:#

多行:''' comments'''




shell: 

单行:#

运行:

perl program.pl

python program.py

bash program.sh

当然也可以chmod +x programname 然后直接./programname啦,都可以的。。。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  perl python shell