Original articles, welcome reprint. Reprint Please specify: Dongsheng's Blog
The print function in Swift 2.0 has 4 overloaded forms:
L Print (_:). Output a variable or constant to the console, and wrap the line.
L Print (_:_:). Outputs a variable or constant into a stream of the specified type, and wraps the line.
L Print (_:appendnewline:). Output variable or constant to the console, the Appendnewline parameter is a Boolean value, True indicates a newline, and false means no line break.
L Print (_:_:appendnewline:). An output variable or constant in a stream of a specified type, the Appendnewline parameter is a Boolean value, True indicates a newline, and false means no line break.
Welcome to follow Dongsheng Sina Weibo @tony_ Dongsheng.
Learn about the latest technical articles, books, tutorials and information on the public platform of the smart Jie classroom
More Products iOS, Cocos, mobile design courses please pay attention to the official website of Chi Jie Classroom: http://www.zhijieketang.com
Luxgen Classroom Forum Website: http://51work6.com/forum.php
Swift 2.0 Learning Note (Day 7) Several overloaded forms of the print function in--swift 2.0