'''
In this small progrom there are some tips as follows.
1.Attention the block of 'if-- elif-- else',or they will notice u a error
2.The function return what u want ,but mustnot use return s
'''
def shut_down(s):
#if u add 'rerutn s'here,it will have a error,there is no s return
if s == "yes":
return "Shutting down"
elif s == "no":
return "Shutdown aborted"
else:
return "sorry"
网友评论