【发布时间】:2016-01-12 22:41:18
【问题描述】:
例如,我有 csv 文件,然后导入到 PowerShell:
$animal = Import-Csv “animal.csv”
$animal
输出是:
动物 ------ 鸟 猫 狗
我想转换为数组值,即我想把这些“鸟”、“猫”、“狗”放在数组中,基本上是这样的:
$newanimals = "Bird","Cat","Dog"
我该怎么做?
【问题讨论】:
标签: arrays csv powershell