#8-1 消息
def display_message():
print("This is a message")
#8-2 喜欢的图书
def favorite_book(title):
print("One of my favorite book is " + title)
#8-3 T恤
def make_shirt(size, s):
print("We will make a shirt in {0} size and {1} on it".format(size, s))
#8-5 城市
def describe_city(name, nation):
print("{0} is in {1}".format(name, nation))
#8-6 城市名
def city_country(name, nation):
return ("{1}, {0}".format(name, nation))
#8-9 魔术师
def show_megicians(li):
for x in li:
print(s)
mag = ["tom", "bob"]
show_megicians(mag)