protocol Person{ var name:String {get set} var age:Int {get set} } struct Student:Person{ var name : String var age : Int init(){ name = "" age = 0 } } var geng:Student = Student() geng.name = "耿伟" geng.age = 18 print("name:\(geng.name),age=\(geng.age)")