练习8-9:消息 创建一个列表,其中包含一系列简短的文本消息。将该列表
传递给一个名为show_messages() 的函数,这个函数会打印列表中的每条文
本消息。
message_list = ['hello', 'nihao', 'someday']
def show_massages(message_list):
for message in message_list:
print(message)
show_massages(message_list)
hello
nihao
someday
进程已结束,退出代码0