Python语言基础 互动版

pass语句


pass是空语句,是为了保持程序结构的完整性。

for letter in 'Python': 
   if letter == 'h':
      pass
      print 'This is pass block'
   print 'Current Letter :', letter

print "Good bye!"