根据需要,您可以轻松地扩展此类编程,让花店顾客能够基于查询参数(比如价格范围和花卉名称)进行过滤和排序。
You can readily extend this kind of programming to give the garden center customers the ability to filter and sort based on query parameters such as price ranges and names, as required.
plants子元素又包含很多plant子元素,每个plant子元素包含关于该花卉的补充信息,比如说名称、描述、数量和价格。
The plants child element contains many plant child elements, each of which contains further information about that plant, including the name, description, quantity and price.
迭代通过每家花店,并报告每种花卉的数量、名称、花店名称和价格。
Iterating through the stores, it reports the quantity, name, store name, and price for each plant. The output looks like Listing 5.
应用推荐