index = {'id','price','amount'} #建立一個set來儲存想要的key test_1 = {key:value for key,value in test_0.items()if key in index} #建立子字典 ...
確定! 回上一頁