python有个特点是作用域用冒号表示,不是大括弧,所以你看到很多语句比如if else for while后面都有一个冒号。
Python 2 has 31 keywords:
and del from not while
as elif global or with
assert else if pass yield
break except import print
class exec in raise
continue finally is return
def for lambda try
In Python 3, exec is no longer a keyword, but nonlocal is.
1.)pass
def f(arg): pass # a function that does nothing (yet) class C: pass