λ°μν
π λͺ©μ°¨
- λ³μ
- νμ
- μ°Έκ³
π λ³μμ μμ
- var
- let
varμ λ³μμ΄λ€
letμ μμμ΄λ€
var str1 = "hello world"
let str2 = "hello world2"
π νμ
- Int(64bit μ μν)
-> type cast Int()
- Double (64bit λΆλ μμμ )
-> type cast Double()
- Float (32bit λΆλ μμμ )
-> type cast Float()
- Bool
-> type cast Bool
- String
-> type cast String
- Character
-> type cast Character
μ¬κΈ°μ νκ°μ§ μ κΈ°ν건 λκ°μ΄ ""μ μ΄λ€λ κ² μ λλ€.
let char : Character = "A"
- Any λͺ¨λ νμ μ μ§μΉνλ ν€μλ
π μ°Έκ³
λ°μν
'Swift' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
Swift ꡬ쑰체μ ν΄λμ€ (0) | 2021.11.21 |
---|---|
Swift μ΅μ λ (0) | 2021.11.20 |
Swift ν¨μ (0) | 2021.11.20 |
Swift 컬λ μ νμ (0) | 2021.11.20 |
Swift for loop and While (0) | 2021.11.19 |