C、C++、Python、Ruby的关键字
| C语言 | C++ | Python | Ruby | PHP | |
| 判断 | if | if | if | ||
| else | else | else | |||
| elif | |||||
| 循环 |
for | for | for | ||
| while | while | while | |||
| break | break | break | |||
| continue | continue | continue | |||
| in | |||||
| return | return | return | |||
| 逻辑运算 | and | and | and | ||
| or | or | or | |||
| 面向对象 | class | class | class | ||
| 异常 | try | try | try | ||
1×2×3×4×5×6×7×8×9×10居然等于10!
| C语言 | C++ | Python | Ruby | PHP | |
| 判断 | if | if | if | ||
| else | else | else | |||
| elif | |||||
| 循环 |
for | for | for | ||
| while | while | while | |||
| break | break | break | |||
| continue | continue | continue | |||
| in | |||||
| return | return | return | |||
| 逻辑运算 | and | and | and | ||
| or | or | or | |||
| 面向对象 | class | class | class | ||
| 异常 | try | try | try | ||