# TOML 还是 XML? 这取决于你的使用场景,简单对比一下: ## TOML 更适合 - **配置文件**(这是它的设计目的) - 人工编写和阅读 - 简单到中等复杂度的层级结构 ```toml [server] host = "localhost" port = 8080 [database] url = "postgres://localhost/mydb" max_conne