当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Processing // (comment)用法及代码示例


Processing, // (comment)用法介绍。

用法

  • // comment

参数

  • comment 任何字符序列

说明

代码中嵌入的解释性说明。注释用于提醒自己并告知他人代码的详细信息。单行注释用两个正斜杠字符表示。编译器会忽略注释。

例子

// Draws two lines which divides the window
// into four quadrants
line(0, 50, 100, 50);  // Draw the horizontal line
line(50, 0, 50, 100);  // Draw the vertical line

相关用法


注:本文由纯净天空筛选整理自processing.org大神的英文原创作品 // (comment)。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。