element(number,tuple).
T = {1,2,3,{22,33},5}.
element(2,T).
>2
element(4,T).
>{22,33}
返回元组中对应位置的元素
setelement(number,tuple,value)
T={1,2,3,{22,33},5}.
setelement(1,T,88).
>{88,2,3,{22,33},5}
用value替换tuple中number对应的元素
element(number,tuple).
T = {1,2,3,{22,33},5}.
element(2,T).
>2
element(4,T).
>{22,33}
返回元组中对应位置的元素
setelement(number,tuple,value)
T={1,2,3,{22,33},5}.
setelement(1,T,88).
>{88,2,3,{22,33},5}
用value替换tuple中number对应的元素