参考 set()

set()

Updates the value associated with the given key in case it already exists in the Dictionary. Otherwise a new key-value pair is added.

示例

语法

set(key, value)

参数

key
Number|String:
value
Number|String:
Notice any errors or typos? Please let us know. Please feel free to edit src/data/p5.TypedDict.js and open a pull request!

相关参考