笔记
with open(r'C:\Users\Administrator\Desktop\xxx.doc', 'rb') as file_object:
# contents = file_object.read()
for line in file_object.readlines():
# print(bitarray2str(line.strip()))
print(line.decode('UTF-8', 'ignore'))
from urllib import parse
s = parse.unquote("%7B%22name%22%3A%22joe%22%2C%22age%22%3A%2223%22%7D")
print(s)
import json
b = json.loads(s)
print(type(b))
print(b['name'])
requests.utils.unquote() #也可以解码
![微信](https://www.cnblogs.com/images/cnblogs_com/bladecheng/1492360/o_weinxin.png)
![QQ](https://www.cnblogs.com/images/cnblogs_com/bladecheng/1492360/o_qrcode_1561712740560.jpg)
个性签名:独学而无友,则孤陋而寡闻!
如果觉得这篇文章对你有小小的帮助的话,记得点个“关注”哦,博主在此感谢!还可以扫码添加好友,交流编程上的问题哦!
万水千山总是情,点赞再走行不行!哈哈哈(っ•̀ω•́)っ✎⁾⁾!