源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Swift心得笔记之函数

  • 时间:2020-12-24 08:43 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Swift心得笔记之函数
[b]参数[/b] 外部变量名 一般情况下你可以不指定外部变量名,直接调用函数:
[url=http://why/233;param?foo=1&baa=2#fragment]http://why/233;param?foo=1&baa=2#fragment[/url]") switch (urlComponents.host, urlComponents.path) { case let (.Some(host), .Some(path)):     println("host \(host) and path \(path)") case let (.Some(host), .None):     println("only host \(host)") case let (.None, .Some(path)):     println("only path \(path)") case let (.None, .None):     println("This is not a url!") } // "host why and path /233/param"
以上所述就是本文的全部内容了,希望大家能够喜欢。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部