美文网首页
2019-12-06--urlencode和quote

2019-12-06--urlencode和quote

作者: spiderzzZ | 来源:发表于2019-12-06 09:59 被阅读0次

1.urlencode是将一个字典转换为一个http请求的url格式

比如{'a':1,

        'b':2,}

转换为:a=1&b=2,通常是构造get请求时候用的。

2.urldecode则是与urlencode相反,将请求转成字典

3.quote是将一个中文直接转换为urlencode编码格式:

将:“你好”转换成  %E4%BD%A0%E5%A5%BD

个人感觉常用语构造post请求

4.unquote与quote相反。

相关文章

  • 2019-12-06--urlencode和quote

    1.urlencode是将一个字典转换为一个http请求的url格式 比如{'a':1, 'b':2,} 转换为:...

  • Quote

    What you hear, you forget; what you see, you remember; wh...

  • quote

    真心并不值钱,但爱对了人就是无价。#希望你们都能有无价的体验#

  • Quote

    Decide what you do. Make a fucking plan and work on that ...

  • Quote

    1.饥岁之春,幼弟不饷,穰岁之秋,疏客必食,非疏骨肉爱过客也,多少之心异也 2.By all means, mar...

  • English sign

    \' - Single quote \" - double quote \\ - backslash \b - b...

  • 2017.01.04 引用

    Quote meDo you have a favorite quote that you return to a...

  • Quote API for random quote proje

    推荐1号: http://quotes.stormconsultancy.co.uk/api 不推荐2号(需跨域请...

  • SAS 程序冷知识——一个关于%str和%nrstr的案例解读(

    上一篇谈到%在str和quote中具有mask的转义作用。SAS 程序冷知识——关于%quote系函数中%的转义问...

  • My word is my bond

    My word is my bond. I am very like this quote. This quote...

网友评论

      本文标题:2019-12-06--urlencode和quote

      本文链接:https://www.haomeiwen.com/subject/plpsgctx.html