Changes to the built-in dict type.
内置dict类型的变化。
That's why you're using a dict.
这就是为什么你用词典。
Why not the the iter method of dict returns the value?
为什么不在国际热核聚变实验堆方法的返回值?
The files PyWordNet needs are in the dict subdirectory.
Py WordNet需要的文件放在dict子目录中。
What about all the integers used in our dict and tuple objects?
在我们的dict和tuple对象中用到的所有的整数是怎么处理的呢?
Many of the changes have been long anticipated, such as true division and changes to dict.
很多变化是早就在人们意料中的,比如对dict的实质更改。
But, if you really want a list of values, you can always cast the returned dict object. For example.
不过,如果您的确想要得到值的列表,可以对所返回的dict对象进行强制类型转换。
The same result can be accomplished using an inline Python dict object, shown in Listings 6 and 7.
使用内联python对象可以获得相同的结果,如清单6和7所示。
Conclusion the lactate clearance rate can pre - dict the prognosis of severe sepsis even in early phase.
结论乳酸清除率可用于早期评估重度脓毒症患者的预后转归。
Finally, this example demonstrates that the underlying data type for a dictionary in Python is the dict object.
最后,这个示例说明了Python中dictionary的底层数据类型是dict对象。
The other method for creating a dict container directly is to provide the key-to-data value mapping directly.
直接创建dict容器的另一个方法是直接提供键到数据值的映射。
The only problem with dict. setdefault() is that the default value is always evaluated, whether needed or not.
唯一的问题就是永运会计算默认值,不管需不需要。
Given wind speed, duration, and fetch, it is possible to pre dict the size of the waves generated by a given storm.
人给出了风速,它的持续时间和吹程,就有可能预报由某一风暴产生的海浪的高度。
Are there more data structures available to Python (2.7) than the standard list, set, tuple dict in the standard library?
有更多的数据结构提供给Python(2.7)比标准的列表,集合,元组的标准库中?
Similarly, looping through a dict lazily used to require the.iterkeys method; now it is just the default for key in DCT behavior.
同样,过去要实现dict的惰性循环遍历需要使用.iterkeys方法;现在,它是默认的forkeyindct行为。
The model can pre dict the air flow over and around the urban complex with reasonable success in a variety of synoptic situations.
此模式可在多种天气形势下相当成功地预报城市综合体上空及其周围的气流运动。
The models pre-dict particle concentration as a function of the flow rate, the particle removal efficiency of the filter, and filtration time.
这些模型预测了粒子浓度与流速、过滤器的粒子去除效率及过滤时间的关系。
To find out more about how to use a dictionary in Python, you can use the built-in help interpreter to learn about the dict class, as shown in Listing 2.
要进一步了解如何使用Python中的dictionary,可以使用内置的帮助解释器来了解dict类,如清单2所示。
Based on the analysis towards the external factors of Shanghai 2010 World expo, the paper tries to pre dict the visitor distribution mode during the expo period.
本文试分析上海世博会展期的影响因素,进而预测展期参观者分布形态。
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”而可以满足当前的要求。
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”而可以满足当前的要求。
应用推荐