第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

python 如何進行以下list 元素去重

python 如何進行以下list 元素去重

回首憶惘然 2019-04-08 11:18:05
如何將以下list去重url_list=[{'path':['jy5','xhr','compose','init.do'],'host':'cwebmail.mail.163.com','method':'POST','query':['cType','sid']},{'path':['jy5','xhr','user','refresh.do'],'host':'cwebmail.mail.163.com','method':'POST','query':['sid']},{'path':['jy5','xhr','compose','compose.do'],'host':'cwebmail.mail.163.com','method':'POST','query':['action','sid']},{'path':['jy5','data','analytics.s'],'host':'cwebmail.mail.163.com','method':'GET','query':['product','uid','host','fun','data','_']},{'path':['jy5','swf','upload2.swf'],'host':'cwebmail.mail.163.com','method':'GET','query':[]},{'path':['jy5','data','analytics.s'],'host':'cwebmail.mail.163.com','method':'GET','query':['product','uid','host','fun','data','_']},{'path':['jy5','xhr','user','refresh.do'],'host':'cwebmail.mail.163.com','method':'POST','query':['sid']},{'path':['jy4-app','xhr','dropbox','account','check.do'],'host':'jy4-app.mail.163.com','method':'POST','query':['utoken','sid']}]轉(zhuǎn)換成以下的listurl_list=[{'path':['jy5','xhr','compose','init.do'],'host':'cwebmail.mail.163.com','method':'POST','query':['cType','sid']},{'path':['jy5','xhr','user','refresh.do'],'host':'cwebmail.mail.163.com','method':'POST','query':['sid']},{'path':['jy5','xhr','compose','compose.do'],'host':'cwebmail.mail.163.com','method':'POST','query':['action','sid']},{'path':['jy5','data','analytics.s'],'host':'cwebmail.mail.163.com','method':'GET','query':['product','uid','host','fun','data','_']},{'path':['jy5','swf','upload2.swf'],'host':'cwebmail.mail.163.com','method':'GET','query':[]},{'path':['jy4-app','xhr','dropbox','account','check.do'],'host':'jy4-app.mail.163.com','method':'POST','query':['utoken','sid']}]
查看完整描述

2 回答

?
MMMHUHU

TA貢獻1834條經(jīng)驗 獲得超8個贊

想到一個辦法,不知道有沒有更好的方法?歡迎回答
url_list_uniq=[]
forurlinurl_list:
ifurlnotinurl_list_uniq:
url_list_uniq.append(url)
printurl_list_uniq
                            
查看完整回答
反對 回復(fù) 2019-04-08
  • 2 回答
  • 0 關(guān)注
  • 547 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號