function testArg
{
    $n = 1;
    if($args.Count -eq 0)
    {
        "No arg!"
    }
    else
    {
        $args | foreach {"the {0} param is {1}" -f $n++,  $_ }
    }
}

-f 使用c#格化式

 

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2022-02-19
  • 2021-04-09
  • 2021-08-30
  • 2021-06-29
  • 2021-11-27
猜你喜欢
  • 2021-06-17
  • 2021-12-03
  • 2021-08-11
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案