全部悬赏
发布悬赏
专家入驻
set mylist {a b c}
# 按索引删除元素c
set mylist [lreplace $mylist 2 2]
# 按值除去元素b
set idx [lsearch $mylist "b"]
set mylist [lreplace $mylist $idx $idx]
¥100
¥2.7
免费
¥600
¥150
¥300
¥19.9
¥58
¥8.8
¥698
¥99
¥400
set mylist {a b c}
# 按索引删除元素c
set mylist [lreplace $mylist 2 2]
# 按值除去元素b
set idx [lsearch $mylist "b"]
set mylist [lreplace $mylist $idx $idx]