a = 1
b = 2
print(a+b)
print(a-b)
print(a*b)
print(a/b)
print(a<b)
print(a>b)
print(a == b)
print(a ~= b)
a = true
b = false
print(a and b)
print(a or b)
print(not a)
print(not b)
print(1 and true) true
print(-1 and true) true
/// 链接符号
a = “heoll ”
b = "World"
print(a..b)
/// 表的构造
a = {}
2 lua 基本数据操作
最新推荐文章于 2023-12-12 13:42:19 发布