#8-1 消息
def display_message():
"""指出你在本章学的是什么"""
print("学习定义函数")
display_message()
#8-2 喜欢的图书
def favorite_book(title):
"""喜欢的图书"""
print("\nOne of my favorite books is " + title + ".")
favorite_book('The old man and the sea')
#8-3 T恤
def make_shirt(T_size, T_type):
print("\nThe T-shirt's size is: " + T_size)
print("The T-shirt's type is: " + T_type)
make_shirt('39', 'freestyle')
make_shirt(T_size='39', T_type='freestyle')
#8-4 大号T恤
def make_shirt(T_size, T_type='I love python'):
print("\nThe T-shirt's size is: " + T_size)
print("The T-shirt's type is: " + T_type)
make_shirt