1.Shell中变量的原形:${var} 一串命令的执行 #等价于 $ var=test $ echo $var test #例如,用在这个位置 $ echo ${var}AA testAA 2.命令替换$(cmd) 一串命令的执行 命令替换$(cmd)和符号`cmd`(注意这不是单引号,在美式键盘上,`是ESC下面的那个键)有相同之处 $ ls a b c $ echo $(ls) a b c $ echo `ls` a b c 我们来分析一下命令echo $(ls),以便理解所谓命令替换是
1.题目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)
新建项目 com + shift +N 新建文件 com + N 偏好设置 通用 com + , 跳到指定行 com + L 当前行加断点 com + \ 移动编辑区最上方 com + 上 移动编辑区最下方 com + 下 移动光标所在行最左边 com + 左 移动光标所在最右边 com + 右 向前/后跳一个单词 option + 左&右 向前删除一个单词 option + delete 删除光标所在行后面的所有字符 contro