Swift 2.0 Study Notes (Day 9) -- leave the expression and try again !, Swift Study Notes
Swift 2.0 Study Notes (Day 9) -- leave the expression and try again!
For Original Articles, please reprint them. Reprinted Please note: Guan Dongsheng's blog
Expressions are very important.
In Swift, there are three forms of expressions.
L data type not specified
Var a1 = 10
L specify the Data Type
Var a1: Int = 10
L use semicolons
Var a1: Int = 10; vara2: Int = 20
In Swift, you can add semicolons (;) after a statement ends. However, you must use semicolons (;) when multiple statements are written in one line, you need to use semicolons to differentiate statements.
For example:
Var a1: Int = 10; vara2: Int = 20;
Welcome to Guan Dongsheng Sina Weibo @ tony _ Guan Dongsheng.
Follow the public platform of Zhijie classroom to learn about the latest technical articles, books, and tutorials.
More boutique iOS, Cocos, mobile design courses please pay attention to the official site of Zhijie classroom: http://www.zhijieketang.com
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.