• 通过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
    ]]
  • 相关阅读:
    Delphi Class of 类引用
    Class-reference types 类引用类型--快要失传的技术
    最简单的TabHost
    修改一些IntelliJ IDEA 11的设置,使Eclipse的使用者更容易上手(转)
    uva 10494
    uva748
    uva 465
    高精度
    uva 694
    uva414
  • 原文地址:https://www.cnblogs.com/sdlypyzq/p/3002591.html
Copyright © 2020-2023  润新知