更新时间:2023-11-16 16:00:52
您正在声明类型为Movie
的变量,但没有给它赋值.您需要创建一个新的Movie
对象并将其分配给您的变量,以便有一个供您使用的值.
You are declaring a variable of type Movie
but you are not giving it a value. You need to create a new Movie
object and assign it to your variable so there is a value for you to work with.
var newMovieVar = Movie()