[Swift中错误]missing argument label 'greeting:' in call
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Swift中错误]missing argument label 'greeting:' in call相关的知识,希望对你有一定的参考价值。
Swift 中出现这个问题:从第二个参数起,自动加上lable
func sayHello(name:String? ,greeting:String)->String { let result = greeting + "," + (name ?? "Guest") + "!" return result } var nickname:String? nickname = "yc" //“Goodmorning前面应该增加greeting:” print( sayHello("yc","Goodmoring") )
以上是关于[Swift中错误]missing argument label 'greeting:' in call的主要内容,如果未能解决你的问题,请参考以下文章
The method load(Class, Serializable) in the type HibernateTemplate is not applicable for the argumen
制作Makefile中 ** missing separator 错误解决
我如何修复 CLIENT_MISSING_INTENTS 错误-Discord.js [重复]
RethinkDB 错误:SyntaxError: missing ) 在参数列表之后