squares = {1: 1, 2: 4, 3: "error", 4: 16,} squares[8] = 64 squares[3] = 9 print(squares) 结果: {8: 64, 1: 1, 2: 4, 3: 9, 4: 16}
0