1. 解析xml的代碼我就不寫了,網上很多,隨便搜下就行了。
2. 寫入list的時,判斷下是否存在就行了
#寫入value
if?value?not?in?lista:
lista.append(value)