Browse Source

Update 'README.md'

天问 2 years ago
parent
commit
093c6b4af0
1 changed files with 24 additions and 1 deletions
  1. 24 1
      README.md

+ 24 - 1
README.md

@@ -1,3 +1,26 @@
 # python-dotenv
 # python-dotenv
+Reads the key,value pair from .env and adds them to environment variable.
+
+## Usage
+安装包,编辑.env配置文件,
+```
+pip install python-dotenv
+vim .env
+
+Host=xx.com
+
+dotenv -v
+dotenv -o
+
+```
+
+读写.env
+
+```
+from dotenv import dotenv_values
+
+xx=dotenv_values(stream=xx)
+```
+
+
 
 
-https://github.com/theskumar/python-dotenv