手机
当前位置:查字典教程网 >脚本专栏 >PowerShell >PowerShell中的转义字符是什么?
PowerShell中的转义字符是什么?
摘要:PowerShell中转义字符是`,向后撇号(backwardapostrophe,是tab键上面的按键,不是单引号),例如:复制代码代码如...

PowerShell中转义字符是`,向后撇号(backward apostrophe,是tab键上面的按键,不是单引号),例如:

复制代码 代码如下:

Write-Host `$env:processor_architecture=$env:processor_architecture

会输出$env:processor_architecture=AMD64

当然还有一个转义字符是在正则表达式(Regular Expression)中使用的,斜线。

【PowerShell中的转义字符是什么?】相关文章:

PowerShell中字符串分行显示的两种方法技巧

PowerShell脚本开发之收发UDP消息包

Powershell中打开网页实例

PowerShell Contains函数查找字符串实例

PowerShell函数中的开关参数介绍和创建实例

PowerShell中文件对象的属性方法总结

PowerShell中定义多行字符串变量的方法

PowerShell中捕获异常时的行号和列号的方法

PowerShell脚本开发之批量扫描IP和端口

PowerShell中按文件后缀过滤的实现代码

精品推荐
分类导航