假设我有两个这样的数组:
$greetings = "hello","hola","namaste"
$names = "jon","jim"
如果我需要这样的输出:
hello jon
hola jon
namaste jon
hello jim
hola jim
namaste jim
我该怎么办?
我试过这个:
$greetings | % { $_ + " " + $names}
这只是给我这样的输出:
hello jon jim
hola jon jim
namaste jon jim