废话不多说,直接上代码:
- A:=[1,2.2,'2.3']
- tuple_length (A, Length)
- tuple_is_int (A[0], IsInt)
- tuple_is_int_elem (A, IsInt1)
- tuple_is_real(A[1],IsReal)
- tuple_is_real_elem (A, IsReal1)
- tuple_is_string (A[2], IsString)
- tuple_is_string_elem (A, IsString1)
- tuple_is_mixed (A, IsMixed)
复制代码
针对重复的元组元素去重复:
- B:=[1,1,1,2,2,2,3,3,3]
- tuple_uniq (B, Uniq)
复制代码 |