, (comma)

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

, (comma)

示例
 // Comma used to separate a list of variable declarations
int a=20, b=30, c=80;

 // Comma used to separate a list of values assigned to an array 
int[] d ={ 20, 60, 80 };

 // Comma used to separate a list of parameters passed to a function line(a, b, c, b);

line(d[0], d[1], d[2], d[1]);

描述 Separates parameters in function calls and elements during assignment.
语法
 value1, ..., valueN 
参数
value1, …, valueN any int,float, byte, boolean, color, char, String

Updated on October 2, 2018 05:02:16pm EDT

, (comma)