url 拼接的一个模块furl
from furl import furl getlongtexturl="https://weibo.com/p/aj/mblog/getlongtext" params={ "ajwvr": "6", "mid": '4240964233025873', "is_settop": "", "is_sethot": "", "is_setfanstop":"", "is_setyoudao":"" , } newurl=furl(getlongtexturl).add(params).url print(newurl)