struct student {
var stuName = " "
static var banji = "ios"
}
var xiaoming = student()
xiaoming.stuName = "xiaoming"
println(xiaoming.banji)
小白还在看语法照着书试了一下println 静态属性为什么报错 student doesn't have a member named "banji"
gix_ic
lybenson
RockenRoll
相关分类