我的印象是swift可以重载方法,这些方法仅在方法返回的对象类型上有所不同。我想我可以有两个具有相同签名但返回类型不同的函数。importFoundation//ambiguoususeof'IsTextEmpty(text:)'funcIsTextEmpty(text:String?)->Bool?{returntext?.isEmpty}funcIsTextEmpty(text:String?)->Bool{guardlettext=textelse{returntrue}returntext.isEmpty}lettext:String?=nilifletempty=IsText