This example then assigns the dictionary assigned to the variable d1 to the variable d2.
然后,这个示例将赋值给变量 d1 的 dictionary 赋值给另一个变量 d2。
2
Note that this isn't a copy operation, as demonstrated by the fact that both d1 and d2 have the same identifier values, as returned by the built-in id() method.
注意,内置的 id() 方法对于 d1 和 d2 返回相同的标识符值,这说明这不是复制操作。
3
The resistor (R) is used to limit the current through the diodes (D1 and D2).