1397535668 发表于 2018-9-2 12:29:47

13. Powershell -- 引号和转义字符

  转义字符使用
  反引号` 定义,应使用”`t”来调用
  常用的转义字符串有:
  `’单引号
  `”双引号
  `0空置NULL
  `a报警
  `b退格
  `f   跳页
  `n新行
  `r   换行
  `t   横向tab键
  `v   众向tab 键
  PSC:\Users\Administrator> "`r" `$a, 则输出$a,取消此变量代换的功能
  例如:
  $a="PowerShell"
  """Myname is `$a"",this program said."
  输出结果将为:
  "Myname is $a",this program said.

页: [1]
查看完整版本: 13. Powershell -- 引号和转义字符