Python pass 是空语句,是为了保持程序结构或者语义的完整性。python中的boolean的值第一个字母需要大写。
例如:
def test02():
if(False):
print('true')
else:
pass
test02()
输出:
Python pass 是空语句,是为了保持程序结构或者语义的完整性。python中的boolean的值第一个字母需要大写。
例如:
def test02():
if(False):
print('true')
else:
pass
test02()
输出: