d = {0:10, 1:20} print(d) d.update({2:30}) print(d) 转载于:https://www.cnblogs.com/sea-stream/p/9981648.html