nesting of [[...]] is deprecated near '['
来源:互联网 发布:长棍佯谬知乎 编辑:程序博客网 时间:2024/06/03 15:17
最近学习lua脚本,这个脚本学起来真有意思。
<<Lua中文教程>>中2.4章有这样一段:
还可以使用[[...]]表示字符串。这种形式的字符串可以包含多行也,可以嵌套且不会解释转义序列,如果第一个字符是换行符会被自动忽略掉。这种形式的字符串用来包含一段代码是非常方便的。
看下面代码:page = [[<HTML><HEAD><TITLE>An HTML Page</TITLE></HEAD><BODY>Lua[[a text between double brackets]]</BODY></HTML>]]print(page)
结果就报了这个错误:nesting of [[...]] is deprecated near '['
意思就是嵌套的错误。
后面在这个网址解决了这个问题:http://tieba.baidu.com/p/3249375311
在第一个中括号加 个符号 =
更正后的代码:
page = [=[<HTML><HEAD><TITLE>An HTML Page</TITLE></HEAD><BODY>Lua[[a text between double brackets]]</BODY></HTML>]=]print(page)
0 0
- nesting of [[...]] is deprecated near '['
- Lua错误:nesting of [[...]] is deprecated near '['
- lua错误:error:nesting of [[...]] is deprecated near
- 解决The standalone version of hieararchyviewer is deprecated.
- 解决The standalone version of hieararchyviewer is deprecated
- throw" is deprecated in favour of "revert()", "require()" and "assert()
- php报错:Deprecated: Assigning the return value of new by reference is deprecated in
- PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
- DEPRECATED: Use of this script to execute hdfs command is deprecated.
- PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
- PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
- DEPRECATED: Use of this script to execute hdfs command is deprecated
- DEPRECATED: Use of this script to execute hdfs command is deprecated.
- DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command
- DEPRECATED: Use of this script to execute hdfs command is deprecated.
- Deprecated: Assigning the return value of new by reference is deprecated in……【解决方法】
- curl出现Deprecated: curl_setopt(): The usage of the @filename API for file uploading is deprecated. Pl
- Deprecated: Assigning the return value of new by reference is deprecated in……解决方法
- iOS开源项目之日志框架CocoaLumberjack
- POI操作Excel
- POJ 3270 Cow Sorting
- 用指针与getchar读入一个文本行
- 飛控板 QCopter Flight Control v2.0
- nesting of [[...]] is deprecated near '['
- 判断ResultSet结果集是否为空
- 练习3只用getchar实现fgets的功能
- OSPF多区域中必须有area0。非area0区域要与area0相连才能实现传播域间路由信息
- 合理配置myeclipse以提高开发效率和响应速度
- 【汇编】gcc反汇编 关于函数调用
- GMF安装
- 算法导论--------------优先队列的研究
- 在Eclipse中如何查看感兴趣的Java类属于哪一个jar文件?