#取奇数……1..20|?{$_ % 2 -eq 1} #取偶数……1..20|?{$_ % 2 -eq 0} #取1、4、7、10……1..20|?{$_ % 3 -eq 1} 转载于:https://www.cnblogs.com/dreamer-fish/p/4024198.html