针脚:我对脚本语言的想法

时间:2021-02-24 07:53:18
【文件属性】:
文件名称:针脚:我对脚本语言的想法
文件大小:24KB
文件格式:ZIP
更新时间:2021-02-24 07:53:18
Python 缝 通过将其他程序“拼接”在一起来创建程序的脚本语言。 BASH等其他语言的替代方法,其重点是简化“正确程序”的编写。 预览 # this is a comment $echo Hello, World # variables $set name Fred $echo Hello $name # command substitution $set arch (uname -m) # arrays $setarray names args Fred Lisa Joey $echo Hello $expand .names 针迹脚本主要由包含一个或多个参数的命令组成。 检查第一个参数以确定如何调用该命令; 有可能: 内置程序(如$echo ) 程序文件名(如果包含任何斜杠/字符) 程序名称( PATH目录之一中的文件) 扩展前的参数分离 一种使编写“正确程序”更容易的方法是,如果某些东
【文件预览】:
stitch-master
----prototype.py(22KB)
----stitch(12B)
----stitch-tests(2KB)
----examples()
--------ldd.original_bash(5KB)
--------ldd(5KB)
--------gitchanges(1KB)
--------datetime(1KB)
--------first(267B)
--------misc(250B)
--------bash-pitfalls(5KB)
----test(6KB)
----README.md(23KB)
----.gitignore(16B)

网友评论