Tcl -- unset

1. Unset - Delete variables

    unset用来删除变量

2. 语法

    unset ?-nocomplain? ?--? ?name name name ...?

3. 说明

    This command removes one or more variables. 

    这个命令用来删除一个或者多个变量。

    Each name is a variable name, specified in any of the ways acceptable to the set command.

    每一个名字都是变量名,通常是用set指定的。

    If a name refers to an element of an array then that element is removed without affecting the rest of the array.

   如果是一个数组元素,则只会删除该数组元素,不会删除其他的数组元素。

    If a name consists of an array name with no parenthesized index, thenthe entire array is deleted.

   但是如果是数组名,不带索引(下标),会删除整个数组。

    The unset command returns an empty stringas result. 返回空字符串。

    An error can occur when the named variable does not exist. 如果变量不存在会报错。

4. 举例

  

   

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值