例如,我有这些文件:
{
"addr": "address1",
"book": "book1"
},
{
"addr": "address2",
"book": "book1"
},
{
"addr": "address1",
"book": "book5"
},
{
"addr": "address3",
"book": "book9"
},
{
"addr": "address2",
"book": "book5"
},
{
"addr": "address2",
"book": "book1"
},
{
"addr": "address1",
"book": "book1"
},
{
"addr": "address15",
"book": "book1"
},
{
"addr": "address9",
"book": "book99"
},
{
"addr": "address90",
"book": "book33"
},
{
"addr": "address4",
"book": "book3"
},
{
"addr": "address5",
"book": "book1"
},
{
"addr": "address77",
"book": "book11"
},
{
"addr": "address1",
"book": "book1"
}
诸如此类。如何提出请求,描述每个地址的前 N 个地址和前 M 本书?预期结果的例子: < br > < br > address1 | Book _ 1:5 < br > | Book _ 2:10 < br > | Book _ 3:50 < br > | 总计: 65 < br > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ < br > address2 | Book _ 1:10 < br > | Book _ 2:10 < br > | ...翻译: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳校对: 奇芳Book _ M: 10 < br > | 总计: M * 10 < br > 。。 < br > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ < br > addressN| book _ 1:20 < br >| book _ 2:20 < br >|..| book _ M: 20 < br > 总数: M * 20