声明 1str2:String? = nil 如: 1234func test(str:String, str2:String? = nil){}test("哈哈");test("哈哈", str2: "哈哈哈");