Name |
IntDict整数型字典类 |
||||||||||||||||||||||||||||||||||||
Examples |
IntDict inventory;
void setup() { size(200, 200); inventory = new IntDict(); inventory.set(“cd”, 84); inventory.set(“tapes”, 15); inventory.set(“records”, 102); println(inventory); noLoop(); fill(0); textAlign(CENTER); }
void draw() { int numRecords = inventory.get(“records”); text(numRecords, width/2, height/2); }
|
||||||||||||||||||||||||||||||||||||
Description |
A simple class to use a String as a lookup for an int value. String “keys” are associated with integer values. 使用字符串作为 int 值的查找的简单类。字符串 “键” 与整数值相关联。 |
||||||||||||||||||||||||||||||||||||
Methods |
|
||||||||||||||||||||||||||||||||||||
Constructor |
IntDict() IntDict(pairs) |
||||||||||||||||||||||||||||||||||||
Related |
FloatDict |
- 本文固定链接: http://iprocessing.cn/2017/07/17/intdict整数型字典类/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表