zoukankan      html  css  js  c++  java
  • 通过lua自带例子学习lua 08 (3638)

    -- Example 36 -- Standard Libraries - operating system facilities.

    -- OS functions:
    -- os.clock, os.date, os.difftime, os.execute, os.exit, os.getenv,
    -- os.remove, os.rename, os.setlocale, os.time, os.tmpname
    
    print(os.date())
    
    
    -------- Output ------
    
    04/06/13 16:30:52

    -- Example 37 -- External Libraries.

    -- Lua has support for external modules using the 'require' function
    -- INFO: A dialog will popup but it could get hidden behind the console.
    
    require( "iuplua" )
    ml = iup.multiline
    {
    expand="YES",
    value="Quit this multiline edit app to continue Tutorial!",
    border="YES"
    }
    dlg = iup.dialog{ml; title="IupMultiline", size="QUARTERxQUARTER",}
    dlg:show()
    print("Exit GUI app to continue!")
    iup.MainLoop()
    
    
    -------- Output ------
    
    Exit GUI app to continue!
    -- Example 38   --[[
    
     To learn more about Lua scripting see
    
     Lua Tutorials: http://lua-users.org/wiki/TutorialDirectory
    
     "Programming in Lua" Book: http://www.inf.puc-rio.br/~roberto/pil2/
    
     Lua 5.1 Reference Manual:
         Start/Programs/Lua/Documentation/Lua 5.1 Reference Manual
    
     Examples: Start/Programs/Lua/Examples
    ]]
  • 相关阅读:
    IOS GCD使用实例大全
    IOS GCD图片数据异步下载,下载完成后合成显示
    Git使用详细教程
    maven是干什么的?
    npm 的作用
    webstorm+nodejs环境中安装淘宝镜像
    关于框架搭建-web
    ES6-babel转码
    JavaScript单元测试工具-Jest
    webpack-dev-server和webpack
  • 原文地址:https://www.cnblogs.com/sdlypyzq/p/3002591.html
Copyright © 2011-2022 走看看