标题: [问题求助] 网络抓到抓到的字典信息 [打印本页]
作者: netdzb 时间: 2020-6-8 11:12 标题: 网络抓到抓到的字典信息
本帖最后由 netdzb 于 2020-6-8 11:26 编辑
有2种格式,如何彻底转化成能看的懂的歌名?
有以下2个字段,请帮忙解析一下?
{'path': ['Back street Boys-Large Than Life.ape']
'path.utf-8': ['Beyond-\xe5\x85\x89\xe8\xbe\x89\xe5\xb2\x81\xe6\x9c\x88.ape']},
--------------
files : [{'path': ['A Beaucharmp-Cancao Do Mar.ape'], 'length': 35144190, '
path.utf-8': ['A Beaucharmp-Cancao Do Mar.ape']}, {'path': ["Aaron
Neville&Linda Ronstadt-Don't Know Much.APE"], 'length': 22506108, 'path.utf-8':
["Aaron Neville&Linda Ronstadt-Don't Know Much.APE"]}, {'path': ['Ace Of
Base-Beautiful Life.ape'], 'length': 26055642, 'path.utf-8': ['Ace Of
Base-Beautiful Life.ape']}, {'path': ['Adiemus-Adiemus.ape'], 'length':
25014142, 'path.utf-8': ['Adiemus-Adiemus.ape']}, {'path': ['Adoramus-Tri
Martolod.APE'], 'length': 26930145, 'path.utf-8': ['Adoramus-Tri Martolod.APE']}
, {'path': ['Ahfendy-Scarborough Fair.ape'], 'length': 21839672, 'path.utf-8':
['Ahfendy-Scarborough Fair.ape']}, {'path': ['Aine Furey-Sweetest Summer
Rain.APE'], 'length': 19276711, 'path.utf-8': ['Aine Furey-Sweetest Summer
Rain.APE']}, {'path': ['All 4 One-I Swear.APE'], 'length': 31942853, '
path.utf-8': ['All 4 One-I Swear.APE']}, {'path': ['Anael-Alien Mind.ape'], '
length': 36106428, 'path.utf-8': ['Anael-Alien Mind.ape']}, {'path': ['Andrea
Green-Ce Train Quisen Ba.ape'], 'length': 24856103, 'path.utf-8': ['Andrea
Green-Ce Train Quisen Ba.ape']}, {'path': ['Annie Pratt-Quand Je Pense A
Tol.ape'], 'length': 28037692, 'path.utf-8': ['Annie Pratt-Quand Je Pense A
Tol.ape']}, {'path': ["As-Children's Dawn Blessing.APE"], 'length': 29659259, '
path.utf-8': ["As-Children's Dawn Blessing.APE"]}, {'path': ['Avril
Lavigne-Girlfriend.ape'], 'length': 29303120, 'path.utf-8': ['Avril
Lavigne-Girlfriend.ape']}, {'path': ['Back street Boys-As Long As You Love
Me.ape'], 'length': 25911558, 'path.utf-8': ['Back street Boys-As Long As You
Love Me.ape']}, {'path': ['Back street Boys-Everybody.ape'], 'length': 33453246,
'path.utf-8': ['Back street Boys-Everybody.ape']}, {'path': ['Back street
Boys-Get Down.ape'], 'length': 28640921, 'path.utf-8': ['Back street Boys-Get
Down.ape']}, {'path': ['Back street Boys-I Want It That Way.ape'], 'length':
26012319, 'path.utf-8': ['Back street Boys-I Want It That Way.ape']}, {'path':
['Back street Boys-Large Than Life.ape'], 'length': 29664276, 'path.utf-8': ['
Back street Boys-Large Than Life.ape']}, {'path': ['Back street Boys-Show Me
The Meaning Of Being Lonely.ape'], 'length': 28519044, 'path.utf-8': ['Back
street Boys-Show Me The Meaning Of Being Lonely.ape']}, {'path': ['
Beyond-\xb2\xbb\xd4\xd9\xd3\xcc\xd4\xa5.ape'], 'path.utf-8': ['
\xe9\x92\xb0\xe8\xbf\xaa-\xe7\xbe\x8e\xe4\xb8\xbd\xe7\x9a\x84\xe5\xbf\x83\xe6\x8
3\x85.ape']}]
-------------------------
如何把files : [ .....]的这个字典解析出来啊?
作者: Gin_Q 时间: 2020-6-9 19:40
- >>> b'\xe5\x85\x89\xe8\xbe\x89\xe5\xb2\x81\xe6\x9c\x88'.decode()
- '光辉岁月'
复制代码
作者: netdzb 时间: 2020-6-9 20:38
回复 2# Gin_Q
谢谢,一起学习,共同进步。
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |