标签:
/*************************************/
func sayHello(name: String,age: Int){
print("your name is \(name),age is \(age)")
}
sayHello("cai",age: 18)
/*************************************/
func sayHello()->Int{
return 16
}
print (sayHello())
/*************************************/
func sayHello() {
print("abc")
}
sayHello()
/*************************************/
func sayHello(personName: String) -> String {
let greeting = "Hello, " + personName + "!"
return greeting
}
print(sayHello("caibin"))
标签:
原文地址:http://www.cnblogs.com/egai/p/5056825.html