可以通过使用类似的东西来解析
from requests_toolbelt.multipart import deprermultipart_string = "--ce560532019a77d83195f9e9873e16a1rnContent-Disposition: form-data; name="author"rnrnJohn Smithrn--ce560532019a77d83195f9e9873e16a1rnContent-Disposition: form-data; name="file"; filename="example2.txt"rnContent-Type: text/plainrnExpires: 0rnrnHello Worldrn--ce560532019a77d83195f9e9873e16a1--rn"content_type = "multipart/form-data; boundary=ce560532019a77d83195f9e9873e16a1"deprer.MultipartDeprer(multipart_string, content_type)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)