
(Swift) 2. Strings and Characters (문자열과 문자)
컴퓨터 언어/Swift
2021. 12. 5. 19:15
String Literals - 문자열 리터럴은 큰따옴표로 둘러싸인 문자열을 말하며 아래의 예시와 같습니다. let someString = "Some string literal value" - 다중행 문자열 리터럴은 세 개의 큰따옴표로 둘러싸인 문자열을 말하며 아래의 예시와 같습니다. let quotation = """ The White Rabbit put on his spectacles. "Where shall I begin, please your Majesty?" he asked. "Begin at the beginning," the King said gravely, "and go on till you come to the end; then stop." """ - 다중행 문자열 리터럴은 그 시작과 끝..