【发布时间】:2021-12-06 02:47:54
【问题描述】:
我想问如何在 .conf 文件中连接字符串和变量。 示例:
在 settings.conf 文件中:
# The credential is in another, separate passphrase.conf file, declared as 'password'
credential = passphrase/${password}
url = "XYZ.${credential}XYZ.com"
如果我按照我的示例中所示进行操作,我会收到一个错误,提示我的密码错误,所以它以某种方式连接不正确。
【问题讨论】:
-
请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。
标签: python configuration config