sleep()出错,要怎么改
class CityInfo {
init()
{
Sleep(10)
}
}
class Metro {
var mName = ""
var city = CityInfo()
}
var line1 = Metro()
line1.mName = "地铁一号线"
println(line1.mName)
class CityInfo {
init()
{
Sleep(10)
}
}
class Metro {
var mName = ""
var city = CityInfo()
}
var line1 = Metro()
line1.mName = "地铁一号线"
println(line1.mName)
2015-09-17
举报