elem(tuple, index)
返回元组元素
put_elem(tuple,index,value)
修改元素值
tuple_size
返回元组的长度
delete_at(tuple, index)
Removes an element from a tuple
duplicate(data, size)
Creates a new tuple
insert_at(tuple, index, term)
Inserts an element into a tuple
to_list(tuple)
Converts a tuple to a list
Elixir Tuple常用的几个方法
最新推荐文章于 2026-06-13 08:57:09 发布
本文详细介绍了Python中元组的常用操作,包括获取元素、修改元素、计算长度、删除元素、创建副本以及插入元素的方法,并提供了将元组转换为列表的实用技巧。
737

被折叠的 条评论
为什么被折叠?



