code: def authorize_url(self):
          
          redirect_uri = quote(self.redirect_uri, safe=b'')
          url_list = [
              self.OAUTH_BASE_URL,
              'oauth2/authorize?appid=',
              self.app_id,
              '&redirect_uri=',
              redirect_uri,
              '&response_type=code&scope=',
              self.scope
          ]
          if self.state:
              url_list.extend(['&state=', self.state])
          url_list.append('#wechat_redirect')
          return ''.join(url_list)
docs: 获取授权跳转地址
  
          :return: URL 地址