You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from lupa.lua53 import LuaRuntime
lua = LuaRuntime()
r = lua.execute("""
function 加法(a, b)
return a + b
end
return 加法(1,2)
""")
print(r)
output
Traceback (most recent call last):
File "E:\tlsoft\echo.py", line 7, in <module>
r = lua.execute("""
File "lupa\lua53.pyx", line 412, in lupa.lua53.LuaRuntime.execute
File "lupa\lua53.pyx", line 1735, in lupa.lua53.run_lua
lupa.lua53.LuaSyntaxError: error loading code: [string "<python>"]:2: <name> expected near '<\229>'
The text was updated successfully, but these errors were encountered:
run
output
The text was updated successfully, but these errors were encountered: