[英]Python flask-restful reqparser json with list of json
{
"Products":[
{
"Product_id":"123"
},
{
"Product_id":"124"
}
]
}
現在如何訪問product_ids,就像我需要獲得123,124 Pls幫助。 而且我從客戶端獲取unicode
df = {
"Products": [
{
"Product_id": "123"
},
{
"Product_id": "124"
}
]
}
for i in df['Products']:
for key, value in i.items():
print('df:', value)
輸出:
df: 123
df: 124
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.