gpt4 book ai didi

python - 使用 Python 解析 Erlang 配置文件

转载 作者:太空狗 更新时间:2023-10-30 02:12:57 27 4
gpt4 key购买 nike

我想用 python 解析一个 erlang 配置文件。有它的模块吗?此配置文件包含;

[{webmachine, [
{bind_address, "12.34.56.78"},
{port, 12345},
{document_root, "foo/bar"}
]}].

最佳答案

您可以使用 etf 库在 python 中解析 erlang 术语 https://github.com/machinezone/python_etf

关于python - 使用 Python 解析 Erlang 配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12296712/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com