时间:2021-07-01 10:21:17 帮助过:81人阅读
Python 语言 pass 语句语法格式如下:
pass
实例:
#!/usr/bin/python for letter in 'Python': if letter == 'h': pass print 'This is pass block' print 'Current Letter :', letter print "Good bye!"
以上实例执行结果:
Current Letter : P
Current Letter : y
Current Letter : t
This is pass block
Current Letter : h
Current Letter : o
Current Letter : n
Good bye!