bestehen

bestehen

V2EX 第 316724 号会员,加入于 2018-05-16 12:17:19 +08:00
Python 这种的报错啥问题
问与答  •  bestehen  •  2018-09-03 07:14:53 AM  •  最后回复来自 Sylv
1
Python 中处理 pdf 问题
Python  •  bestehen  •  2018-09-04 17:52:35 PM  •  最后回复来自 jiangbingo
1
Python 中的 pathlib 怎么用
Python  •  bestehen  •  2018-09-02 17:45:18 PM  •  最后回复来自 bestehen
5
请问一下喝过权限如何处理呢?
问与答  •  bestehen  •  2018-08-28 00:03:20 AM
sha-256 这种加
算法  •  bestehen  •  2018-08-27 23:58:14 PM  •  最后回复来自 bestehen
3
post man 模拟上传一个文件改成 Python 报错 空文件
Python  •  bestehen  •  2018-08-26 17:11:11 PM  •  最后回复来自 luozic
1
Python 通过 multipart 协议发送 post 请求 报错如下
问与答  •  bestehen  •  2018-08-26 16:06:49 PM  •  最后回复来自 bestehen
2
Python 如何 发送 multiipart 上传文件?
问与答  •  bestehen  •  2018-08-24 15:31:27 PM  •  最后回复来自 bestehen
3
bestehen 最近回复了
2018-09-11 10:52:57 +08:00
回复了 V392920 创建的主题 程序员 接私活后让我很浮躁,如何脱离这样的状态,求指点.
踏实一点
2018-09-02 17:45:18 +08:00
回复了 bestehen 创建的主题 Python Python 中的 pathlib 怎么用
@inframe 你说的官方文档是那个 piyi 的 homepage 吗?
2018-09-02 17:44:52 +08:00
回复了 bestehen 创建的主题 Python Python 中的 pathlib 怎么用
@matrix273 解决了谢谢
2018-08-27 23:58:14 +08:00
回复了 bestehen 创建的主题 算法 sha-256 这种加
@silhouette 消息长度是啥
2018-08-26 16:06:49 +08:00
回复了 bestehen 创建的主题 问与答 Python 通过 multipart 协议发送 post 请求 报错如下
@xubeiyan 我换了 utf-8
但是传的文件是空
2018-08-24 15:31:27 +08:00
回复了 bestehen 创建的主题 问与答 Python 如何 发送 multiipart 上传文件?
网页源码是这样的

<form id="w0" class="form-horizontal" action="/report/add?_=1535094880131" method="post" enctype="multipart/form-data">
<input type="hidden" name="_csrf" value="4n_OPKuOaFi3F2pKZZwCPje9xQM4aIwKOZiHWUSoOSGnDqls7uo4HY5aAClc0nVhR_OIMloA-D5L3rYGNMdLVA=="><div class="form-group field-reportform-url">
<label class="control-label col-sm-3" for="reportform-url">上传报告</label>
<div class="col-sm-6">
<input type="hidden" name="ReportForm[url]" value=""><input type="file" id="reportform-url" class="report_pdf_new" name="ReportForm[url]">
<p class="help-block help-block-error "></p>
</div>
2018-08-24 12:46:18 +08:00
回复了 bestehen 创建的主题 问与答 Python 如何 发送 multiipart 上传文件?
@lieh222 返回的是 none
我现在是这样写的
files=[("ReportForm[url]",('齐家网 COO 毛新勇:《未来平台赋能是必然,但要真刀真枪才有意义》-18 页.pdf',open(file,'rb'),'Content-Type: application/pdf'))]
data={"_csrf":csrf_token}
headers=headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
}

response=requests.post(url=url,cookies=cookies,files=files,data=data,headers=headers)
print(response.request.body)
主要这个网站我好想发布了图片,只能打字
2018-08-22 00:40:53 +08:00
回复了 bestehen 创建的主题 Python Python 报错 如何解决?
@xiaobai987 一边去
2018-08-22 00:40:22 +08:00
回复了 bestehen 创建的主题 Python Python 调用 nodejs 取结果 用下面这种方法如何写?
@huaerxiela 我说调用 nodejs 不是 js
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2832 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms · UTC 13:37 · PVG 21:37 · LAX 06:37 · JFK 09:37
Developed with CodeLauncher
♥ Do have faith in what you're doing.