疯狂的萝卜

my blog,hello

vuePress-theme-reco helloz    2023 - 2025
疯狂的萝卜 疯狂的萝卜

Choose mode

  • dark
  • auto
  • light
主页
分门别类
  • lua
  • unity
  • 开发
  • Dev
  • frontEnd
标签
时间线
文档
  • 3DMax
  • GmsLua
  • Help
  • Unity
  • nodejs
  • theme-reco
联系
  • Gms_Stable (opens new window)
  • Gms_Test (opens new window)
  • Gms_Editor (opens new window)
  • contact him (opens new window)
  • GitHub (opens new window)
author-avatar

helloz

53

Articles

10

Tags

    主页
    分门别类
    • lua
    • unity
    • 开发
    • Dev
    • frontEnd
    标签
    时间线
    文档
    • 3DMax
    • GmsLua
    • Help
    • Unity
    • nodejs
    • theme-reco
    联系
    • Gms_Stable (opens new window)
    • Gms_Test (opens new window)
    • Gms_Editor (opens new window)
    • contact him (opens new window)
    • GitHub (opens new window)

    lua type

    vuePress-theme-reco helloz    2023 - 2025

    lua type

    helloz 4/11/2024 lua
    local num = 123  
    local str = "Hello"  
    local tbl = {}  
    local nilVar = nil  
    local func = function() end  
      
    print(type(num))     -- 输出 "number"  
    print(type(str))     -- 输出 "string"  
    print(type(tbl))     -- 输出 "table"  
    print(type(nilVar))  -- 输出 "nil"  
    print(type(func))    -- 输出 "function"
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    Last Updated: Thu, 11 Apr 2024 06:54:22 GMT