python命令⾏读取json⽂件macname@bogon testenv3.7 % cat file.json
{
"code": 200,
"msg": "请求成功",
"data": {
"username": "abc",
"mobile": "186********"
},
"task":[{
"username": "abc1",
"mobile": "186********"
},
{
python怎么读取json文件"username": "abc2",
"mobile": "186********"
}]
}
macname@bogon testenv3.7 %
macname@bogon testenv3.7 % python3 -l file.json
{
"code": 200,
"msg": "\u8bf7\u6c42\u6210\u529f",
"data": {
"username": "abc",
"mobile": "186********"
},
"task": [
{
"username": "abc1",
"mobile": "186********"
},
{
"username": "abc2",
"mobile": "186********"
}
]
}
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论