gpt4 book ai didi

powershell - 是否已弃用Powershell排序对象升序?

转载 作者:行者123 更新时间:2023-12-03 00:23:24 26 4
gpt4 key购买 nike

据我所知,我在Windows 10中使用了最新版本的PowerShell:

Import-Csv $in -header Date,Time,O,H,L,C,V | Sort-Object H -ascending

令我惊讶的是,升序未被识别。为什么不推荐使用?

最佳答案

据我所知,从来没有参数-Ascending。默认是升序排序,而降序需要参数-Descending

我仍然可以使用的最古老的语言规范来自版本2,它在Sort-Object上说明了这一点:

enter image description here

关于powershell - 是否已弃用Powershell排序对象升序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32593664/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com