如何在Python的循环中创建JSON数据?我试着创建这样的循环,但它给了我错误 for prod in data: productId = prod['productId'] 错误: ^{pr2}$ {'volume': '1', ...2024-06-28 已阅读: n次