8-3
#位置实参
def make_shirts(size,words):
print("The size of the shirt is " + size)
print("The words on it are " + words)
make_shirts("L","Just do it.")
#关键字实参
def make_T_shirts(size,words):
print("The size of the T-shirt is " + size)
print("The words on it are " + words)
make_T_shirts(size = "XL",words = "Predetor")
8-4
def make_shirts(words = "I love Python",size = "L"):
print("He wants a " + size + " size shirts with " + words + " on it.")
make_shirts()
make_shirts(size = "M")
make_shirts("I love Java")
8-5
def discribe_city(city,country = "china"):
print(city.title() + " is in " + country.title())
discribe_city("shanghai")
discribe_city("chongqing")
discribe_city("new york","america")