python from decouple import config # Get sensitive information from the .env file db_username = config('DB_USERNAME') db_password = config('DB_PASSWORD') api_key = config('API_KEY') # Use the sensitive information in your code # For example, connect to a database database.connect(username=db_username, password=db_password) # Or use the API key for authentication api.authenticate(api_key) DB_USERNAME=myusername DB_PASSWORD=mypassword API_KEY=myapikey


上一篇:
下一篇:
切换中文