{} (curly braces)

本参考资料用于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.

名称

{ } (curly braces)

示例
 
int[]
a ={ 5, 20, 25, 45, 70
  };



void setup()
{  
size(100, 100);


  } 
void draw()
{  
for (int i=0;

i < a.length;

i++)
{
line(0, a[i], 50, a[i]);


   }
  } 
描述 Define the beginning and end of functions blocks and statement blocks such as the for and if structures. Curly braces are also used for defining initial values in array declarations.
语法
{ statements
  }{ ele0, ..., eleN
  } 
参数
statements any sequence of valid statements
ele0, ..., eleN list of elements separated by commas
相关 () (parentheses)

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

{  } (curly braces)