8.6
城市名:编写一个名为city_country()的函数,它接受城市的名称及其所属的
国家。这个函数应返回一个格式类似于下面这样的字符串:
def city_country(city, country): full_city_country = city + ',' + country return full_city_country.title() while True: print("\nPlease tell me a city") print("(enter 'q' at any time to quit)") ci_name = input("City:") if ci_name == 'q': break