原帖由 "r2007" 发表:
同意第2点![]()
今天你缩进了吗?![]()
![]()
如果你是一个C或Pascal程序员的话这可能十分新奇,Python的缩进语法实际上是建立在对非程序员的易用性的研究结果上的。Python的语法通常被称为语言的“所见即所得”,它可以保持一致的代码外观,有助于可读性,并可避免普通的C/C++错误。
It's probably more novel if you're a C or Pascal programmer. Python's indentation-based syntax is actually based on the results of a usability study of nonprogrammers, conducted for the ABC language. Python's syntax is often called the "what you see is what you get" of languages; it enforces a consistent appearance that tends to aid readability and avoid common C and C++ errors.
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |