r2 - 07 Nov 2007 - 13:43:30 - WhaleForestYou are here: TWiki >  Processing Web > ProcessingHandbookChinese > Structure1CodeElementsWhiteSpace

White Space 空白字符

包括Processing在内的很多程序语言,允许代码之间存在空白字符,不象之前对声明结束符的严格要求,空白字符的存在不会导致程序错误。接下来的两行代码是标准写法:

size(200,200);
background(102);
    
1-05

当然,在程序代码间不管存在多少空白字符都不会影响程序的正常运行:

size

(    200,
    200)         ;
background    (             102)
       ;
    
1-06
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback