摘要: http://www.ruanyifeng.com/blog/2016/07/yaml.html json基本语法:https://baike.baidu.com/item/JSON/2462549?fr=aladdin 一、简介 YAML语言的基本规则如下: 大小写敏感 使用缩进表示层级关系 缩进 阅读全文
posted @ 2021-02-25 15:49 我可以2030 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 原链接:https://www.cnblogs.com/keyou1/p/11510975.html 1、安装ruamel.yaml 1.1.使用官方pypi源来安装 pip install ruamel.yaml 1.2.使用豆瓣pypi源来安装(推荐) pip install -i https: 阅读全文
posted @ 2021-02-25 15:00 我可以2030 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 引用原地址:https://www.jianshu.com/p/aa6366b02c28 本文内容: 项目配置分离 为什么要分离 该怎么分离 配置合并 合并代码 分离 为什么要分离: 为区分正式和开发而分离 1.开发环境和生成环境应该使用不同的环境变量 为了隔离敏感信息而分离 1.数据库密码,账号t 阅读全文
posted @ 2021-02-25 13:29 我可以2030 阅读(428) 评论(0) 推荐(0) 编辑
摘要: Python os.path.dirname(__file__) 与 Python os.path.abspath(__file__) 的区别 os.path.abspath(__file__)返回的是.py文件的绝对路径(完整路径)os.path.dirname(__file__)返回的是.py文 阅读全文
posted @ 2021-02-25 10:59 我可以2030 阅读(128) 评论(0) 推荐(0) 编辑