카테고리 없음
                
              .env yaml
                유키공
                 2025. 4. 23. 08:42
              
              
                                
        DB_HOST: localhost
DB_PORT: 3306
DB_USER: root
DB_PASSWORD: secret
import yaml
with open("env.yml", "r") as f:
    config = yaml.safe_load(f)
print(config["DB_HOST"])