fn RemoveTheSame List =
(
local Alist=#()
for item in List do
(
if findItem Alist item == 0 then append Alist item
)
--遍歷完了List裏的元素後返回Alist
if (Alist.count>0) then (sort Alist;return Alist)
)
findItem Alist item : 查找Alist數組中有沒有item這個元素,如果沒有找到則返回0
append Alist item : 向Alist數組的尾部追加item這個元素
sort Alist : 對Alist數組進行排序