Tcl经典报错之 —— variable references require preced
作为脚本语言tcl的"[]"使用尤为重要
经典报错之variable references require preced
错误的情况:
% if {!string compare $x hell} {puts "string is hell"
正确的情况:
% set x hello
% if {![string compare $x hell]} {puts "string is hell"
} elseif ![string compare $x hell] {puts "string is hel"
} elseif ![string compare $x hello] {puts "string is hello"
} else {puts "error input string"}> string is hello
错误原因:发生替换时必须有[] 将其括起来,否则语法错误
总结:有替换[]必须伴随
代码参考 :tcl编程初步
Tcl经典报错之 —— variable references require preced相关推荐
- Tcl经典报错 之 extra characters after close-quote
作为脚本语言tcl的空格使用尤为重要 经典报错之 extra characters after close-quote 错误的情况 % array set a [list "School,B ...
- Openfire 代码部署报错: Variable references non-existent resource:${workspace_loc:openfire_src}...
Variable references non-existent resource:${workspace_loc:openfire_src} -DopenfireHome="${works ...
- dedecms后台报错“Undefined variable cfg_domain_cookie”的解决方法
dedecms后台报错"Undefined variable cfg_domain_cookie"的解决方法 打开调试模式 Notice: Undefined variable: ...
- php require 报错,如何解决php require once报错问题
php require once报错的解决办法:首先找到并打开"php.ini"文件:然后把"display_error=off"改成"display ...
- tensorflow报错a Variable name or other graph key that is missin, Restoring from checkpoint failed. T
报错 Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key t ...
- 仍然报错_详解oracle经典报错:ORA-04030排错思路和解决方法
概述 前段时间使用的oracle 11g数据库,在用一段时间后(开始要较长时间才出现,后来较短时间就出现),频繁报ORA-04030错误,具体错误信息是 ORA-04030: 在尝试分配...字节(. ...
- pycharm pandas 经典报错 pandas.core.base.SpecificationError: nested renamer is not supported
文章目录 前言 pandas.core.base.SpecificationError: nested renamer is not supported 报错代码段 && 解决方案 报 ...
- gee报错Some bands might require explicit casts(波段顺序不一致)问题求教
请问大家有遇到过这样的报错吗?显示好像是数据波段顺序不一致,这种应该如何修改啊,谢谢.
- 解决tensorflow报错ValueError: Variable conv1/weights already exists, disallowed.
早上在跑别人的tensorflow代码时报错: Traceback (most recent call last):File "<ipython-input-23-712e8e1f02 ...
- select into报错Undeclared variable: abcd
其实就是mysql不支持select into,但是可以用另一种方式去实现 create table t1(select * from t2) 真实有效,可参考:文章
最新文章
- UA MATH523A 实分析3 积分理论例题 集合的特征函数L2收敛的条件
- VTK:可视化之Legend
- 【sprinb-boot】排除/不加载某些Bean
- Maven中使用tomcat:run出现错误org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
- 如何在Gradle多项目构建中管理依赖项
- Aptana3 SVN Client安装
- axios学习笔记(一):学习HTTP相关的技术知识点
- Eclipse之Project facet Java version 1.8 is not supported.
- oracle 解释计划权限,ACL的使用:主机权限规划管理--Oracle脚本
- 位运算(、|、^、~、>>、<<)
- HTML 标签的 enctype 属性
- VS2013/SQL SERVER 产品密钥
- thinkphp5实战系列(二)前台模板的引入
- 什么是网络流量劫持?
- Bit Twiddling Hacks
- Hexo-Matery主题细致美化
- 如何活让自己活得充实:其实很简单,把脑子里想的东西,变成行动,就能立刻充实起
- 在linux系统下暴力破解WiFi密码
- StarUML使用说明
- 热力学统计物理专题:系综理论