首先建立一个数组以保存角色信息。
当您建立一个数组类型时,数组的大小并不确定。
When you declare an array type, the size of the array is not specified.
脚本一开始建立了一个数组保存全部电影。
At the top of the script, I create an array that holds all the movies.
还有另外的方式返回多个值,例如从要领中返回一个数组,或者建立一个特别定义的类的实例。
There are other ways of returning multiple values, such as returning an array from the method, or creating a specialized class and returning an instance of it.
还有另外的方式返回多个值,例如从要领中返回一个数组,或者建立一个特别定义的类的实例。
There are other ways of returning multiple values, such as returning an array from the method, or creating a specialized class and returning an instance of it.
应用推荐