Lua笔记(19)—— 表达式(expression)和语句(statement)

Lua中的表达式(expression)定义:

Expressions denote values. Expressions in Lua include the numeric constants and string literals, variables, unary and binary operations, and function calls. Expressions include also the unconventional function definitions and table constructors.

表达式产生值,包括:数字常量,字符串,变量,单目和双目运算,另外还有函数调用。此外,表达式还包括函数定义和创建table

Lua中的语句(statement)定义:

Lua supports an almost conventional set of statements, similar to those in C or Pascal. The conventional statements include assignment, control structures, and procedure calls. Lua also supports some not so conventional statements, such as multiple assignments and local variable declarations.

语句包括:赋值,控制结构,过程调用(block),多重赋值和local变量定义。

《Lua笔记(19)—— 表达式(expression)和语句(statement)》有4个想法

  1. 博主,你这个有时候很慢啊。都快10多秒了,但有时候很快。慢的时候是左下角一直卡在加载googlela…什么的,难道必须翻墙吗

    1. 我用的是Chrome浏览器,看起来速度还可以。个人感觉应该取决于当时的网络状况。兴许主机的提供商有时也有问题,但是过一会应该就好了。

发表评论

电子邮件地址不会被公开。 必填项已用*标注