original articles, welcome reprint. Reprint Please specify: Dongsheng's blog
when we learn the language, we learn the data type of the language, Swift What are the data types in? Integer, float, Boolean, character, string these types are certain, where collections, enumerations, structs, and classes are also data types in Swift. Tuples are unique in Swift .
Other types We may have known or heard about. Tuples are there in Swift , what is it?
It is a data structure, which is widely used in mathematics. In computer science, tuples are a basic concept in a relational database, one record in a tuple table, and each column is a field. So in the two-dimensional table, tuples are also called records.
now use Swift syntax Representation Student tuples are:
The first form of a notation
("1001", " Zhang San " , ()
The second type of notation
(ID: "1001", Name: " Zhang San Span style= "FONT-FAMILY:COURIER;FONT-SIZE:11PX;" >english core c _s :90)
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; "title=" 00.png "src=" http://s4.51cto.com/wyfs02/M00/7C/A0/wKioL1bUCz-SZDVcAAAs2MBEZnc789.png "alt=" Wkiol1bucz-szdvcaaas2mbeznc789.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://tonyguan.blog.51cto.com/701759/1746094
Learning Swift from scratch (day 11)-Data type What's the matter?