1.lua game = {} function game.play() print("那么,开始吧"); end return game;
2.lua require "1" function game.quit() print("你走吧,我保证你不会出事的,呵,呵呵"); end
main.lua require "2" local function main() game=require("1") game.play(); game.quit(); end main()
时间: 2024-11-07 09:59:26