From 8bfc22c043c9404f245a6961ec7a25049abc8d95 Mon Sep 17 00:00:00 2001 From: jiulinxiri Date: Mon, 10 Jan 2022 16:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20README=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 6148 -> 6148 bytes 11 方法.playground/Resources/README.md | 10 +++++++++- 12 下标.playground/Resources/README.md | 7 +++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.DS_Store b/.DS_Store index 347ecb125ad932326797488702520c4e7e244bb7..924c5aaa710911e7efeb24a911e94ba69d51b49f 100644 GIT binary patch delta 60 zcmZoMXfc@J&&awlU^gQp>*Nhg>Wht;7`X))3>YjK6sEonW}VE(tP12C0--|c&YY{8 O`Iu+2Y-Z>9%MSqCI}gYJ delta 35 rcmZoMXfc@J&&a$nU^gQp^W+Uo>Wht;7&lL0E@qk7khqzh<1aq|$LkAI diff --git a/11 方法.playground/Resources/README.md b/11 方法.playground/Resources/README.md index e734782..14072c7 100644 --- a/11 方法.playground/Resources/README.md +++ b/11 方法.playground/Resources/README.md @@ -1,3 +1,10 @@ +--- +gitea: none +include_toc: true +--- + + + ### 方法 枚举、结构体、类都可以定义实例方法、类方法 @@ -76,4 +83,5 @@ struct Point { } var p = Point() p.moveX(deltaX: 10) -``` \ No newline at end of file +``` + diff --git a/12 下标.playground/Resources/README.md b/12 下标.playground/Resources/README.md index 9e33f43..234fb10 100644 --- a/12 下标.playground/Resources/README.md +++ b/12 下标.playground/Resources/README.md @@ -1,3 +1,10 @@ +--- +gitea: none +include_toc: true +--- + + + ### 下标(subscript) 使用 `subscript` 可以给任意类型(枚举、结构体、类)增加下标功能。`subscript` 的语法类似于实例方法、计算属性,本质就是方法(函数)