Notes on The Swift Programming Language-page 24th, swiftprogramming
The Swift Programming Language Reading Notes on The seventh page contains two main content: print The output and how to comment out code 1 in swift how to print The value of variables and constants? Use the println function. For details, the println function outputs a line feed in addition to the variable constant value. 1) print the constant eg1 let hw = "hello chinagame. me "println (hw) => The String constant can be output to the Console. 2) print the variable and use \ (variable name) to output it in double quotation marks, this is like % s eg2 var qq = 1941847311 println ("my qq's number is \ (qq)") in C language. How can I comment out the code? 1) Use // to comment out a single line of code. 2) Use/* and */to comment multiple lines in the same way as other languages.
For swift
Swift is good. In fact, it is better to learn the basics. If you learn it directly, you may not understand it in some places. I have some Chinese learning materials. Leave your email and I will give it to you.
Apple's latest swift language development documents or tutorials
Programming Basics
Let's look at the Swift code written by others. If you get too much, you'll be familiar with it.
Go to Github
If the English language is not good, go to the Swift hunter'
Baidu can check it at once.