Python

数组/列表去重

Posted by JackyCJ on December 3, 2020

Python数组/列表去重

a = [1, 2, 3, 1, 2, 3]
b = []
for e in a:
	if e not in a:
		b.append(e)