Next, we read the HTML form values into the dictionary-like form instance.
接着,我们将html表单值读取到类似于字典的form实例中。
But at the boundaries — for objects that belong to custom classes — it is difficult to state definitively what constitutes "dictionary-like" or "file-like" behavior.
但是,在边界——对于属于自定义类的对象来说——难以声明最终是什么构成了“类- dictionary”或“类- file”的行为。
Most of the time, a custom object that implements only a subset — even a fairly small subset — of, for example, the methods of a built-in dict are dictionary-like enough for purposes at hand.
大部分情况下,只实现了比如内置的dict类型的方法的一个子集——甚至是相当小的子集——的自定义对象,就足够“类- dictionary”而可以满足当前的要求。
应用推荐