update,
This commit is contained in:
20
task1/archive/task4.py
Normal file
20
task1/archive/task4.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import json
|
||||
|
||||
# Load js_result.json
|
||||
with open('js_result.json', 'r') as file:
|
||||
js_result = json.load(file)
|
||||
|
||||
# Load task3_output.json
|
||||
with open('task3_output.json', 'r') as file:
|
||||
task3_output = json.load(file)
|
||||
|
||||
|
||||
output = []
|
||||
for js_row in js_result:
|
||||
for t3 in task3_output:
|
||||
if (js_row['park_Id'] == t3['park_Id']):
|
||||
output.append({**js_row,
|
||||
"t3_park_Id": t3['park_Id'],
|
||||
"t3_privateCar": t3['privateCar'],
|
||||
})
|
||||
break
|
Reference in New Issue
Block a user