hash 如下: 【推荐阅读:内核边缘性问题】
首先,假设有如下xml片断: dromedary, or arabian camel 300 to 690 kg. the dromedary camel is characterized by a long-curved neck, deep-narrow chest, and a single hump. ... the dromedary camel is an herbivore. ... the dromedary camel has a lifespan of about 40-50 years ... with the exception of rutting males, dromedaries show very little aggressive behavior. ... the camels prefer desert conditions characterized by a long dry season and a short rainy season. ... since the dromedary camel is domesticated, the camel has no special status in conservation. ... 现在我们假设此完整文档(可从本月例子代码中获取)包含骆驼家族所有成员的全部信息,而不仅仅是上面的单峰骆驼信息.为了举例说明每一模块是如何从此文件中提取某一数据子集,我们将写一个很简短的脚本来处理camelids.xml文档与在stdout上输出我们找到的每一种类的普通名(common-name),拉丁名(用括号包起来),与当前保存状况.因此,处理完整个文档,每一个脚本的输出应该为如下结果: bactrian camel (camelus bactrianus) endangered dromedary, or arabian camel (camelus dromedarius) no special status llama (lama glama) no special status guanaco (lama guanicoe) special concern vicuna (vicugna vicugna) endangered任务二:创建一个xml文档
... 下一页