iOS/Swift [Swift] print(_:separator:terminator:) - https://developer.apple.com/documentation/swift/print(_:separator:terminator:) separator vs terminator - separator : 공백이 아닌 다른 항목으로 print 할 때 사용 print(1, 2, 3, 4, separator: " .. ") // 1 .. 2 .. 3 .. 4 - terminator : 공백 없이 print 할 때 사용 for n in 1...5{ print(n, terminator: "") } // 12345 728x90 공유하기 게시글 관리 구독하기Joey의 블로그 'iOS > Swift' 카테고리의 다른 글 [Swift] 상속 (0) 2022.09.25 [Swift] 서브스크립트 (2) 2022.09.22 [Swift] 프로퍼티와 메서드 (0) 2022.09.20 [Swift] 구조체와 클래스 (0) 2022.09.16 [Swift] 모나드 (0) 2022.09.16 Contents 당신이 좋아할만한 콘텐츠 [Swift] 상속 2022.09.25 [Swift] 서브스크립트 2022.09.22 [Swift] 프로퍼티와 메서드 2022.09.20 [Swift] 구조체와 클래스 2022.09.16 댓글 0 + 이전 댓글 더보기