Set
An unorder collection of a unquie object. No duplicate value.
不可以有重複的直,一般都是用在帳號上面。
Create set
1 | my_set= {1,2,3,4,5} |
output:
{1, 2, 3, 4, 5}
如果加重複會用最前面的
1 | my_set= {1,2,3,4,5,5} |
output:
{1, 2, 3, 4, 5}
adding set
1 | my_set= {1,2,3,4,5,5} |
output
‘{1, 2, 3, 4, 5, 100}`