Python两个列表去除相同内容
a = "ab\\as\\ef"
b = "ab\\as\\ef"
a_list = a.split("\\")
b_list = b.split("\\")
c_list = []
for i in a_list:
if i in b_list:
c_list.append(i)
for i in c_list:
a_list.remove(i)
b_list.remove(i)
print(a_list)
print(b_list)