语法(一) – 模式匹配
Swift 的 switch 语句具有灵活却富有表现力的匹配模式。 基本使用 单值匹配 单值字符串匹配 let name = "twostraws" switch name { case "bilbo": print("Hello, Bilb...
语法(七) – 文档标记
Markdown Markdown 注释以 /** 开始,以 */ 结束。 /** Call this function to grok some globs. */ func myGreatFunction() { // do stuff } 常见的 Markdown 格式,如下 Place text in `backt...
类型(一) – 有用的初始化器
重复值 字符串或者数组的 repeating:count: 初始化器,可以快速创建大量值。 This is a heading ============== 具体的实现代码 let heading = 'This is a heading' let underline = String(rep...
VBA Excel 文件合并
Sub Summary_Click() '定义合并文件夹目录; Dim path As String '标题头只运行一次 Dim once As Integer once = 1 '定义合并总表的文件名 Dim activeName As String '定义当前文件夹当前检查获...
macOS 实现 DOC 批量转 DOCX
本文主要利用 macOS 的 自动操作 以及 AppleScript 来实现 DOC 批量转 DOCX。 AppleScript 的运行脚本 on run {input, parameters} tell application 'Microsoft Word' repeat with docFile in ...








