logo
  • 教程列表
  • SO官方文档
  • Powershell 教程
    • Powershell - 概述
    • Powershell - 环境设置
    • Powershell - cmdlet
    • Powershell - 文件和文件夹操作
    • Powershell - 日期和时间操作
    • Powershell - 文件 I/O 操作
    • Powershell - 高级 Cmdlet
    • Powershell - 脚本
    • Powershell - 特殊变量
    • Powershell - 运算符
    • Powershell - 循环播放
    • Powershell - 条件
    • Powershell - 数组
    • Powershell - 哈希表
    • Powershell - 正则表达式
    • Powershell - 反向撇号
    • Powershell - Brackets
    • Powershell - Alias
  1. 教程
  2. Powershell 教程
  3. Powershell - 算术运算符示例

Powershell - 算术运算符示例

Created: November-02, 2018

以下脚本演示了算术运算符。

> $a = 10
 
> $b = 20
 
> $c = 25
 
> $d = 25
 
> $a + $b
 30
 
> $a - $b
 -10
 
> $a * $b
 200
 
> $b / $a
 2
 
> $b % $a
 0 
  • Powershell - if else 语句
  • Powershell - 格式宽的 Cmdlet

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明