我有一个json文件,里面存有很多条学生纪录,比如:
{“name”:“lisa”, "number":1, "exam1": 100, "exam2": 90, "exam3": 93}
{“name”:“nick”, "number":2, "exam1": 90, "exam2": 100, "exam3": 84}
{“name”:“marry”, "number":3, "exam1": 92, "exam2": 100, "exam3": 73}
....
现在我只想提取学生的name,number,exam3,写到新的json文件中
{“name”:“lisa”, "number":1, "exam3": 93}
{“name”:“nick”, "number":2, "exam3": 84}
{“name”:“marry”, "number":3, "exam3": 73}
....
请问要怎么弄呢??
比较急,python大神帮帮忙。。。
{“name”:“lisa”, "number":1, "exam1": 100, "exam2": 90, "exam3": 93}
{“name”:“nick”, "number":2, "exam1": 90, "exam2": 100, "exam3": 84}
{“name”:“marry”, "number":3, "exam1": 92, "exam2": 100, "exam3": 73}
....
现在我只想提取学生的name,number,exam3,写到新的json文件中
{“name”:“lisa”, "number":1, "exam3": 93}
{“name”:“nick”, "number":2, "exam3": 84}
{“name”:“marry”, "number":3, "exam3": 73}
....
请问要怎么弄呢??
比较急,python大神帮帮忙。。。