original articles, welcome reprint. Reprint Please specify: Dongsheng's blog
Expression AH is very important.
in Swift, there are 3 forms of expressions.
- Do not specify a data type
var A1 = 10
var a1:int = Ten
var a1:int = 10; var a2:int = 20
In the swift language, a semicolon can be added without a semicolon at the end of a statement, but there is a case where a semicolon is required, that is, when multiple statements are written in one line, a semicolon is used to differentiate the statement.
For example:
var a1:int = 10; var a2:int = 20;
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
Swift 2.0 Study Notes (Day 9)--Leave expression you try!