etc/Powershell
[Powershell] 배열 사용하기
이단서로
2023. 2. 23. 17:03
주제
배열 사용하기
방법
문자 배열
$data = @('Zero','One','Two','Three')
PS C:\> $data = @('Zero','One','Two','Three')
PS C:\> $data.Count
4
PS C:\> $data
Zero
One
Two
Three
숫자 배열
$data = @(1, 2, 3, 4, 5)
이외에 다양한 방법으로 표현 할 수 있다.
출처
배열에 대해 알고 싶은 모든 것
728x90