text: # @Author ZhangGJ
  # @Date 2020/12/28 16:13
  
  def get_formatted_name(first_name, last_name):
      """返回整洁的姓名"""
      full_name = f"{first_name} {last_name}"
      return full_name
  
  
  while True:
      print("\nPlease tell me your name: ")
      print("(Enter 'q' at any time to quit)")
      f_name = input("first name: ")
      if f_name == 'q':
          break
      l_name = input("last name: ")
      if f_name == 'q':
          break
  
      formatted_name = get_formatted_name(f_name, l_name)
      print(f"\nHello, {formatted_name}!")
  