Semicolons1 스위프트(Swift) 가이드 (2): Printing Constants and Variables, Comments, Semicolons, Integers, Integer Bounds, Int, UInt, Floating-Point Numbers Printing Constants and Variables 사용자가 선언한 상수(Constant)와 변수(Variable)은 print(_:separator:terminator:) 함수와 함께 출력을 할 수 있다. print(_:separator:terminator:) 함수는 하나 이상의 값을 적절한 출력 채널에 출력하는 global function이다. Xcode에서 print(_:separator:terminator:) 함수는 Xcode의 콘솔에 결과를 출력한다. separator와 terminator 파라미터는 기본 값(defualt value)를 갖기 때문에 이 함수를 출력 할때 생략해도 된다. print(_:separator:terminator:) 함수에서 terminator에 설정된 기본 값(.. 2020. 3. 10. 이전 1 다음