小编Mar*_*sfy的帖子

如何在python中加载toml文件

如何将 toml 文件加载到我的代码的 python 文件中

蟒蛇文件:

import toml 


toml.get("first").name
Run Code Online (Sandbox Code Playgroud)

.toml 文件:

[first]
    name = "Mark Wasfy"
    age = 22
[second]
    name = "john micheal"
    age = 25
Run Code Online (Sandbox Code Playgroud)

python toml

5
推荐指数
1
解决办法
3489
查看次数

标签 统计

python ×1

toml ×1