|
Xscript文字教程第四课.参数类型
- ----------xcript中参数类型讲解----------
- --[[
- number --数字 如 1 3 56 95 0 是五个数字
- string --字符 如 "hello" "你好" "123" "()" 是四个字符
- bloolean --仅包含 true false
- table --表或者说数组(详见第3讲)
- ]]
- local tb = {1,"two","三",{4}}
- toast(tb[1].." "..type(tb[1]),1000) --> 1 number
- sleep(1000)
- toast(tb[2].." "..type(tb[2]),1000) --> two string
- sleep(1000)
- toast(tb[3].." "..type(tb[3]),1000) --> 三 string
- sleep(1000)
- toast(type(tb[4]),1000) --> table
- -----------上述代码复制可用-----------
- -----------白沐QQ:1051712028-----------
[color=rgb(51, 102, 153) !important]复制代码
|
|