To specify an int variable for an iterator and a String variable for element name, use the code in Listing 17.
要为迭代器指定一个int变量并为元素名称指定一个String变量,请使用清单17中的代码。
The call to filter converts the string that is passed as its second argument to a piece of code, which it then applies to each element of the list that is passed as its first argument.
调用filter将作为第二个参数传递的字符串转换成一段代码,然后将该代码应用到作为第一个参数传递的列表的每个元素。
Listing 22 is a modified version of code originally provided by Sam Ruby that takes the JSON serialization of an Atom text construct or content element and converts it back into a string.
清单22对最初由Sam Ruby提供的代码进行了修改,包含Atom文本结构或内容元素的JSON序列化,并将其转换为一个字符串。
应用推荐