Numeric and Boolean Literal 数字和布尔常量
In Vimscript, as in c, only the numeric value zero is false in a Boolean context; any non-zero numeric value-whether positive or negative-is considered true.
和c一样,在Vimscript中,对于布尔值来说,只有数值0为假;任何非0数值—不管是正数还是负数—都为真。
The value you specify with a parameter can be a free-form string, a number (including specialized numeric values, such as IP addresses), a Boolean value, a variable, or a list.
您指定的参数Value可以是自由格式的字符串、数字(包括特殊数值,如IP地址)、boolean值、变量或列表。
Other convenience methods are implemented for retrieving object instances of the numeric and Boolean types by means of their fully qualified name.
实现了其它一些便利方法,通过其全限定名来检索numeric和boolean类型的对象实例。
应用推荐