鱼C论坛

 找回密码
 立即注册
查看: 1712|回复: 3

[已解决]这个怎么转译

[复制链接]
发表于 2020-11-8 10:32:33 | 显示全部楼层 |阅读模式
10鱼币
is_wifi=1&app_version=351&user_code=15396599307&bound_id=d6fb3794c3c44b15990e057fa38652c41&session=32e86ec2527b49329e9d7f468dcc5a32&app_id=8&device=0&platform=1&json_data=%5B%7B%22user_code%22%3A%2215396599307%22%2C%22class_id%22%3A93488%2C%22app_id%22%3A8%2C%22type%22%3A4%2C%22source_id%22%3A%220%22%2C%22book_id%22%3A0%2C%22unit_id%22%3A0%2C%22data%22%3A%5B%7B%22word_id%22%3A1225%2C%22test_id%22%3A32644%2C%22answer%22%3A%22B.+%E7%BB%99%E2%80%A6%E4%BD%9C%E6%8F%92%E5%9B%BE%22%2C%22duration%22%3A4%2C%22result%22%3A0%2C%22finish_time%22%3A1604802009%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A3033%2C%22test_id%22%3A63356%2C%22answer%22%3A%22C.+create%22%2C%22duration%22%3A10%2C%22result%22%3A0%2C%22finish_time%22%3A1604802018%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4967%2C%22test_id%22%3A63886%2C%22answer%22%3A%22A.+prospect%22%2C%22duration%22%3A3%2C%22result%22%3A0%2C%22finish_time%22%3A1604802022%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1515%2C%22test_id%22%3A47779%2C%22answer%22%3A%22C.+heat%22%2C%22duration%22%3A2%2C%22result%22%3A0%2C%22finish_time%22%3A1604802024%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4795%2C%22test_id%22%3A32586%2C%22answer%22%3A%22B.+%E8%AF%BE%E6%9C%AC%EF%BC%9B%E6%95%99%E7%A7%91%E4%B9%A6%22%2C%22duration%22%3A3%2C%22result%22%3A0%2C%22finish_time%22%3A1604802027%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4491%2C%22test_id%22%3A35650%2C%22answer%22%3A%22B.+acquaintance%22%2C%22duration%22%3A5%2C%22result%22%3A1%2C%22finish_time%22%3A1604802032%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4491%2C%22test_id%22%3A35650%2C%22answer%22%3A%22C.+classify%22%2C%22duration%22%3A1%2C%22result%22%3A0%2C%22finish_time%22%3A1604802034%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1687%2C%22test_id%22%3A37194%2C%22answer%22%3A%22B.+audience%22%2C%22duration%22%3A2%2C%22result%22%3A1%2C%22finish_time%22%3A1604802037%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1687%2C%22test_id%22%3A37194%2C%22answer%22%3A%22A.+institute%22%2C%22duration%22%3A1%2C%22result%22%3A0%2C%22finish_time%22%3A1604802038%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A3889%2C%22test_id%22%3A34946%2C%22answer%22%3A%22C.+event%22%2C%22duration%22%3A2%2C%22result%22%3A0%2C%22finish_time%22%3A1604802041%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1121%2C%22test_id%22%3A59082%2C%22answer%22%3A%22A.+%E5%B9%BF%E5%91%8A%E7%89%8C%22%2C%22duration%22%3A4%2C%22result%22%3A0%2C%22finish_time%22%3A1604802045%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4228%2C%22test_id%22%3A31153%2C%22answer%22%3A%22C.+%E7%A9%B6%E7%AB%9F%E5%93%AA%E4%B8%80%E4%B8%AA%EF%BC%9B%E2%80%A6%E7%9A%84%E9%82%A3%E4%B8%AA%E4%BA%BA+%5C%2F+%E7%89%A9%22%2C%22duration%22%3A5%2C%22result%22%3A0%2C%22finish_time%22%3A1604802050%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A5624%2C%22test_id%22%3A35847%2C%22answer%22%3A%22B.+survive%22%2C%22duration%22%3A4%2C%22result%22%3A0%2C%22finish_time%22%3A1604802054%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A7006%2C%22test_id%22%3A46422%2C%22answer%22%3A%22C.+%E6%8C%87%E5%AF%BC%E6%96%B9%E9%92%88%EF%BC%9B%E6%8C%87%E5%AF%BC%E5%8E%9F%E5%88%99%22%2C%22duration%22%3A3%2C%22result%22%3A0%2C%22finish_time%22%3A1604802056%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1925%2C%22test_id%22%3A37328%2C%22answer%22%3A%22B.+manufacture%22%2C%22duration%22%3A3%2C%22result%22%3A1%2C%22finish_time%22%3A1604802060%2C%22src%22%3A0%7D%5D%7D%5D
转译为
is_wifi: 1
app_version: 351
user_code: 15396599307
bound_id: d6fb3794c3c44b15990e057fa38652c41
session: 32e86ec2527b49329e9d7f468dcc5a32
app_id: 8
device: 0
platform: 1
json_data: [{"user_code":"15396599307","class_id":93488,"app_id":8,"type":4,"source_id":"0","book_id":0,"unit_id":0,"data":[{"word_id":1225,"test_id":32644,"answer":"B. 给…作插图","duration":4,"result":0,"finish_time":1604802009,"src":0},{"word_id":3033,"test_id":63356,"answer":"C. create","duration":10,"result":0,"finish_time":1604802018,"src":0},{"word_id":4967,"test_id":63886,"answer":"A. prospect","duration":3,"result":0,"finish_time":1604802022,"src":0},{"word_id":1515,"test_id":47779,"answer":"C. heat","duration":2,"result":0,"finish_time":1604802024,"src":0},{"word_id":4795,"test_id":32586,"answer":"B. 课本;教科书","duration":3,"result":0,"finish_time":1604802027,"src":0},{"word_id":4491,"test_id":35650,"answer":"B. acquaintance","duration":5,"result":1,"finish_time":1604802032,"src":0},{"word_id":4491,"test_id":35650,"answer":"C. classify","duration":1,"result":0,"finish_time":1604802034,"src":0},{"word_id":1687,"test_id":37194,"answer":"B. audience","duration":2,"result":1,"finish_time":1604802037,"src":0},{"word_id":1687,"test_id":37194,"answer":"A. institute","duration":1,"result":0,"finish_time":1604802038,"src":0},{"word_id":3889,"test_id":34946,"answer":"C. event","duration":2,"result":0,"finish_time":1604802041,"src":0},{"word_id":1121,"test_id":59082,"answer":"A. 广告牌","duration":4,"result":0,"finish_time":1604802045,"src":0},{"word_id":4228,"test_id":31153,"answer":"C. 究竟哪一个;…的那个人 \/ 物","duration":5,"result":0,"finish_time":1604802050,"src":0},{"word_id":5624,"test_id":35847,"answer":"B. survive","duration":4,"result":0,"finish_time":1604802054,"src":0},{"word_id":7006,"test_id":46422,"answer":"C. 指导方针;指导原则","duration":3,"result":0,"finish_time":1604802056,"src":0},{"word_id":1925,"test_id":37328,"answer":"B. manufacture","duration":3,"result":1,"finish_time":1604802060,"src":0}]}]

最佳答案
2020-11-8 10:32:34
使用encodeURIComponent() 函数进行URL转码

最佳答案

查看完整内容

使用encodeURIComponent() 函数进行URL转码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-11-8 10:32:34 | 显示全部楼层    本楼为最佳答案   
使用encodeURIComponent() 函数进行URL转码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-11-8 15:53:29 | 显示全部楼层
from urllib.parse import parse_qs
print(parse_qs('is_wifi=1&app_version=351&user_code=15396599307&bound_id=d6fb3794c3c44b15990e057fa38652c41&session=32e86ec2527b49329e9d7f468dcc5a32&app_id=8&device=0&platform=1&json_data=%5B%7B%22user_code%22%3A%2215396599307%22%2C%22class_id%22%3A93488%2C%22app_id%22%3A8%2C%22type%22%3A4%2C%22source_id%22%3A%220%22%2C%22book_id%22%3A0%2C%22unit_id%22%3A0%2C%22data%22%3A%5B%7B%22word_id%22%3A1225%2C%22test_id%22%3A32644%2C%22answer%22%3A%22B.+%E7%BB%99%E2%80%A6%E4%BD%9C%E6%8F%92%E5%9B%BE%22%2C%22duration%22%3A4%2C%22result%22%3A0%2C%22finish_time%22%3A1604802009%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A3033%2C%22test_id%22%3A63356%2C%22answer%22%3A%22C.+create%22%2C%22duration%22%3A10%2C%22result%22%3A0%2C%22finish_time%22%3A1604802018%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4967%2C%22test_id%22%3A63886%2C%22answer%22%3A%22A.+prospect%22%2C%22duration%22%3A3%2C%22result%22%3A0%2C%22finish_time%22%3A1604802022%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1515%2C%22test_id%22%3A47779%2C%22answer%22%3A%22C.+heat%22%2C%22duration%22%3A2%2C%22result%22%3A0%2C%22finish_time%22%3A1604802024%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4795%2C%22test_id%22%3A32586%2C%22answer%22%3A%22B.+%E8%AF%BE%E6%9C%AC%EF%BC%9B%E6%95%99%E7%A7%91%E4%B9%A6%22%2C%22duration%22%3A3%2C%22result%22%3A0%2C%22finish_time%22%3A1604802027%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4491%2C%22test_id%22%3A35650%2C%22answer%22%3A%22B.+acquaintance%22%2C%22duration%22%3A5%2C%22result%22%3A1%2C%22finish_time%22%3A1604802032%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4491%2C%22test_id%22%3A35650%2C%22answer%22%3A%22C.+classify%22%2C%22duration%22%3A1%2C%22result%22%3A0%2C%22finish_time%22%3A1604802034%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1687%2C%22test_id%22%3A37194%2C%22answer%22%3A%22B.+audience%22%2C%22duration%22%3A2%2C%22result%22%3A1%2C%22finish_time%22%3A1604802037%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1687%2C%22test_id%22%3A37194%2C%22answer%22%3A%22A.+institute%22%2C%22duration%22%3A1%2C%22result%22%3A0%2C%22finish_time%22%3A1604802038%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A3889%2C%22test_id%22%3A34946%2C%22answer%22%3A%22C.+event%22%2C%22duration%22%3A2%2C%22result%22%3A0%2C%22finish_time%22%3A1604802041%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1121%2C%22test_id%22%3A59082%2C%22answer%22%3A%22A.+%E5%B9%BF%E5%91%8A%E7%89%8C%22%2C%22duration%22%3A4%2C%22result%22%3A0%2C%22finish_time%22%3A1604802045%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A4228%2C%22test_id%22%3A31153%2C%22answer%22%3A%22C.+%E7%A9%B6%E7%AB%9F%E5%93%AA%E4%B8%80%E4%B8%AA%EF%BC%9B%E2%80%A6%E7%9A%84%E9%82%A3%E4%B8%AA%E4%BA%BA+%5C%2F+%E7%89%A9%22%2C%22duration%22%3A5%2C%22result%22%3A0%2C%22finish_time%22%3A1604802050%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A5624%2C%22test_id%22%3A35847%2C%22answer%22%3A%22B.+survive%22%2C%22duration%22%3A4%2C%22result%22%3A0%2C%22finish_time%22%3A1604802054%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A7006%2C%22test_id%22%3A46422%2C%22answer%22%3A%22C.+%E6%8C%87%E5%AF%BC%E6%96%B9%E9%92%88%EF%BC%9B%E6%8C%87%E5%AF%BC%E5%8E%9F%E5%88%99%22%2C%22duration%22%3A3%2C%22result%22%3A0%2C%22finish_time%22%3A1604802056%2C%22src%22%3A0%7D%2C%7B%22word_id%22%3A1925%2C%22test_id%22%3A37328%2C%22answer%22%3A%22B.+manufacture%22%2C%22duration%22%3A3%2C%22result%22%3A1%2C%22finish_time%22%3A1604802060%2C%22src%22%3A0%7D%5D%7D%5D'))
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-11-8 15:54:16 | 显示全部楼层
输出
{'is_wifi': ['1'], 'app_version': ['351'], 'user_code': ['15396599307'], 'bound_id': ['d6fb3794c3c44b15990e057fa38652c41'], 'session': ['32e86ec2527b49329e9d7f468dcc5a32'], 'app_id': ['8'], 'device': ['0'], 'platform': ['1'], 'json_data': ['[{"user_code":"15396599307","class_id":93488,"app_id":8,"type":4,"source_id":"0","book_id":0,"unit_id":0,"data":[{"word_id":1225,"test_id":32644,"answer":"B. 给…作插图","duration":4,"result":0,"finish_time":1604802009,"src":0},{"word_id":3033,"test_id":63356,"answer":"C. create","duration":10,"result":0,"finish_time":1604802018,"src":0},{"word_id":4967,"test_id":63886,"answer":"A. prospect","duration":3,"result":0,"finish_time":1604802022,"src":0},{"word_id":1515,"test_id":47779,"answer":"C. heat","duration":2,"result":0,"finish_time":1604802024,"src":0},{"word_id":4795,"test_id":32586,"answer":"B. 课本;教科书","duration":3,"result":0,"finish_time":1604802027,"src":0},{"word_id":4491,"test_id":35650,"answer":"B. acquaintance","duration":5,"result":1,"finish_time":1604802032,"src":0},{"word_id":4491,"test_id":35650,"answer":"C. classify","duration":1,"result":0,"finish_time":1604802034,"src":0},{"word_id":1687,"test_id":37194,"answer":"B. audience","duration":2,"result":1,"finish_time":1604802037,"src":0},{"word_id":1687,"test_id":37194,"answer":"A. institute","duration":1,"result":0,"finish_time":1604802038,"src":0},{"word_id":3889,"test_id":34946,"answer":"C. event","duration":2,"result":0,"finish_time":1604802041,"src":0},{"word_id":1121,"test_id":59082,"answer":"A. 广告牌","duration":4,"result":0,"finish_time":1604802045,"src":0},{"word_id":4228,"test_id":31153,"answer":"C. 究竟哪一个;…的那个人 \\/ 物","duration":5,"result":0,"finish_time":1604802050,"src":0},{"word_id":5624,"test_id":35847,"answer":"B. survive","duration":4,"result":0,"finish_time":1604802054,"src":0},{"word_id":7006,"test_id":46422,"answer":"C. 指导方针;指导原则","duration":3,"result":0,"finish_time":1604802056,"src":0},{"word_id":1925,"test_id":37328,"answer":"B. manufacture","duration":3,"result":1,"finish_time":1604802060,"src":0}]}]']}
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-12-23 22:45

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表