课程: Swift 5 Essential Training
The quest begins: Variables
- If you think about a programming language in physical terms, variables and types are it's building blocks, it's atoms. They're the foundation and come in different shapes and sizes according to their functions. In this chapter, we're going to work with basic variable types common to all languages, including strings, integers, and Booleans. We'll also be introducing optional types, which are unique to Swift. These allow us to gracefully handle variables with nil values without bringing our code to a crashing stop. We've got a lot to cover, so let's start out on our Swift adventure.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
The quest begins: Variables34 秒
-
(已锁定)
Variables and constants3 分钟 6 秒
-
(已锁定)
Type safety and inference3 分钟 11 秒
-
(已锁定)
Logging and commenting1 分钟 58 秒
-
(已锁定)
Swift operators2 分钟 42 秒
-
(已锁定)
Understanding strings5 分钟 13 秒
-
(已锁定)
Working with strings5 分钟 11 秒
-
(已锁定)
Type conversions4 分钟 57 秒
-
(已锁定)
Booleans and logical operators2 分钟 40 秒
-
(已锁定)
Introducing optionals3 分钟 15 秒
-
(已锁定)
Accessing documentation1 分钟 23 秒
-
(已锁定)
Challenge: Player stats45 秒
-
(已锁定)
Solution: Player stats4 分钟 12 秒
-
-
-
-
-
-
-