diff --git a/.DS_Store b/.DS_Store index 347ecb1..924c5aa 100644 Binary files a/.DS_Store and b/.DS_Store differ 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` 的语法类似于实例方法、计算属性,本质就是方法(函数)