# TOML 还是 JSON? 这取决于使用场景,两者各有所长: ## TOML 更适合:配置文件 ```toml [server] host = "localhost" port = 8080 [database] url = "postgres://localhost/mydb" max_connections = 10 # 支持注释,这对配置文件很重要! ``` **优点:**