为什么在添加 powershell 字符串和数组时操作数的顺序很重要?

Why does order of operands matter when adding powershell strings and arrays?

在powershell中,当我添加字符串+数组时,结果是一个字符串,但是当我添加数组+字符串时,结果是一个数组?这是为什么?

PowerShell 将第二个操作数转换为第一个操作数的类型(如果可以)。