如何将Lua嵌入Python 3.x? [英] How could I embed Lua into Python 3.x?

查看:141
本文介绍了如何将Lua嵌入Python 3.x?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将Lua嵌入Python 3.x?如果是这样,如何在我的Python程序中运行和执行Lua脚本?例如,语言之间的交互有多好?Lua可以访问Python的所有变量和类,而Python可以访问Lua的所有信息吗?

Is it possible to embed Lua into Python 3.x? If so how could I run and execute Lua scripts within my Python program? How good would the interaction be between the Languages for instance would Lua have access to all of Python's variables and classes and would Python have access to all of Lua's information?

推荐答案

尝试 Lunatic Python ,两个和Lua之间的双向桥梁.

Try Lunatic Python, a two-way bridge between Python and Lua.

这篇关于如何将Lua嵌入Python 3.x?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆