Original articles, welcome reprint. Reprint Please specify: Dongsheng's Blog
when I first saw the following code, I petrified, what is the code? The words spelled out?
Import Foundation
var str = "HelloWorld"
print (str)
Dizzy, okay, keep your head down and look down, oh, yes.
The first sentence: Import Foundation
represents the introduction Foundation Framework.
What is Foundation framework?
Foundation is a OS X and the IOS the underlying framework for application development, which includes basic classes such as numbers, strings, arrays, dictionaries, and so on.
Cocoa Framework is OS X the development requires several frameworks which include: AppKit and the Foundation Framework. the UIKit Framework is a Framework for developing IOS graphical user interfaces, including common views and view controllers.
The second sentence: var str = "Hello World"
Statement Str variables, var represents a declared variable.
The third sentence: print (str)
Print (_:) is a function that can output variables or constants to the console.
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
650) this.width=650; "Width=" 133 "height=" 131 "title=" 00.png "style=" width:133px;height:131px; "src="/HTTP/ S1.51cto.com/wyfs02/m00/7b/67/wkiom1bnkgpw4rcoaaas2mbeznc796.png "border=" 0 "vspace=" 0 "hspace=" 0 "alt=" Wkiom1bnkgpw4rcoaaas2mbeznc796.png "/>
More ProductsIOS,Cocos, mobile Design course please pay attention to the official website of Chi Jie Classroom:http://www.zhijieketang.com
Smart-Jie Classroom Forum Website:http://51work6.com/forum.php
This article is from the "Dongsheng-ios Technical Consultant" blog, make sure to keep this source http://2009315319.blog.51cto.com/701759/1744579
Learn Swift from scratch (Day1)-My first line of Swift code