The VirtualSystems class (Listings 4 and 5) implements methods to return all the necessary values, wrapping the dictionary object inside.
VirtualSystems类(清单4和5)实现了返回所有必要值的方法,并封装了字典对象。
A dictionary display yields a new dictionary object.
使用一个字典会生成一个新的字典对象。
This class implements a dictionary, and you can add items to it or remove items from it as you would any dictionary object.
此类实现一个字典,可以像对待任何字典对象那样从其中添加或移除项。
Listing 2 shows that a Dictionary object now has more to it.
清单2显示Dictionary对象现在具有更多成员。
The export method takes the data from a Dictionary object and writes it to an XML file.
export方法从Dictionary对象中取得数据,并将其写入XML文件中。
You know that any Dictionary object will have been initialized with the required arguments.
所有Dictionary对象都已经用必需的参数初始化过了。
As you can see, there is no need to instantiate a Dictionary object to access this property.
正如所看到的,访问该属性无需实例化Dictionary对象。
After the Dictionary object is loaded, you can look up meanings of words whose definition you need.
加载Dictionary后就可以查看所需单词的定义了。
A Dictionary object always has a get method, whether an instance of Dictionary itself or of a child class.
Dictionary对象总是具有get方法,而不管它是Dictionary本身还是其子类的实例。
To instantiate a Dictionary object, you need to pass a type string and a DictionaryIO object to its constructor.
要实例化Dictionary对象,需要将类型字符串和DictionaryIO 对象传递给它的构造函数。
The first time you encounter a Dictionary object in a calling method, you can check its type before working with it.
在调用方法中第一次遇到Dictionary对象时,可以在使用它之前检查它的类型。
The constructor USES these parameters to set its own properties. Here is how you might now instantiate a Dictionary object.
构造函数使用这些参数来设置自有属性。
To recap, it takes data from a Dictionary object, writes it to the file system, takes data from a file, and merges it back into a Dictionary object.
扼要重述一下,它从Dictionary对象中获取数据,将其写入文件系统,从一个文件中获取数据,将其合并回到Dictionary对象中。
To recap, it takes data from a Dictionary object, writes it to the file system, takes data from a file, and merges it back into a Dictionary object.
扼要重述一下,它从Dictionary对象中获取数据,将其写入文件系统,从一个文件中获取数据,将其合并回到Dictionary对象中。
应用推荐