code: def get_encoding_from_reponse(r):
      
      encoding = requests.utils.get_encodings_from_content(r.text)
      return encoding[0] if encoding else requests.utils.get_encoding_from_headers(r.headers)
docs: 获取requests库get或post返回的对象编码
  
      Args:
          r: requests库get或post返回的对象
  
      Returns:
          对象编码