参数化
Posted yaohu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了参数化相关的知识,希望对你有一定的参考价值。
# coding:utf-8
import requests
xxxxx
=====================================================
if __name__ == "__main__":
url = "https://passport.cnblogs.com/user/signin"
payload = {
"input1": "xxx",
"input2": "xxx",
"remember": True
}
s = requests.session()
login(s, url, payload,)
url2 = "https://i.cnblogs.com/EditPosts.aspx?opt=1"
u = save_box(s, url2, "标题", "正文内容")
postid = get_postid(u)
url3 = "https://i.cnblogs.com/post/delete"
delete_box(s, url3, postid)
以上是关于参数化的主要内容,如果未能解决你的问题,请参考以下文章