(post_data)
convert origin dict to x-www-form-urlencoded

    Args:
        post_data (dict):
            {"a": 1, "b":2}

    Returns:
        str:
            a=1&b=2
convert origin dict to x-www-form-urlencoded
convert origin dict to x - www - form - urlencoded
def x_www_form_urlencoded(post_data):
    """ convert origin dict to x-www-form-urlencoded

    Args:
        post_data (dict):
            {"a": 1, "b":2}

    Returns:
        str:
            a=1&b=2

    """
    if isinstance(post_data, dict):
        return "&".join(
            ["{}={}".format(key, value) for key, value in post_data.items()]
        )
    else:
        return post_data
def x_www_form_urlencoded ( post_data ) : if isinstance ( post_data , dict ) : return "&" . join ( [ "{}={}" . format ( key , value ) for key , value in post_data . items ( ) ] ) else : return post_data