QueryDict
    #request.GET['XXX']=123
    print(type(request.GET))
    from django.http.request import QueryDict
    print(request.GET)
    import copy
    params = copy.deepcopy(request.GET)
    params = ['xxx']=123
    print('params',params)
    print(params.urlencode())  # 'a=1&b=2&xxx=3'

注: 通过url方法,将request.GET获取到的数据转化成字符串