编辑代码



let numberOfStoplights:Int = 4
var population:Int
population = 552

let townName:String = "Knowhere"
let townDescription =
 "\(townName) has a population of \(population) "

var message:String

let numberOfPages:Int = 10
var movieRatings=["Donnie Darko":4,
             "Chungking Express":5,"Dark City":4]

 print("This is max \(Int32.max)")
 print("This is min \(Int32.min)")
 print("I have rated \(movieRatings.count) movies.")