powershell _for
언어/powershell2017. 7. 3. 17:34
PS C:\Users\김준현> $list = 1..10
PS C:\Users\김준현> $list
1
2
3
4
5
6
7
8
9
10
====================================================
왠지 루비하고 비슷한것 같다
for i in 1..10
puts i
end
'언어 > powershell' 카테고리의 다른 글
powershell _function (0) | 2017.07.03 |
---|---|
powershell _hash (0) | 2017.07.03 |
powershell _function
언어/powershell2017. 7. 3. 17:33
PS C:\Users\김준현> function sqare ($x) {$x*$x}
PS C:\Users\김준현> sqare 4
16
'언어 > powershell' 카테고리의 다른 글
powershell _for (0) | 2017.07.03 |
---|---|
powershell _hash (0) | 2017.07.03 |
powershell _hash
언어/powershell2017. 7. 3. 17:27
PS C:\Users\김준현> $hash = @{} # An empty hash table
PS C:\Users\김준현> $hash = @{a=1; b=2}
PS C:\Users\김준현> $hash
Name Value
---- -----
a 1
b 2
'언어 > powershell' 카테고리의 다른 글
powershell _for (0) | 2017.07.03 |
---|---|
powershell _function (0) | 2017.07.03 |