[英]IBM Bluemix user defined variables
How can we access USER-DEFINED
variables in IBM Bluemix in Python? 我们如何在Python中的IBM Bluemix中访问
USER-DEFINED
变量? I have made a token in IBM Bluemix, but I am unable to access it from my Python script. 我已经在IBM Bluemix中创建了一个令牌,但是无法从我的Python脚本访问它。
In the bluemix UI, 在bluemix UI中,
token = <actual value of token>
Solved it. 解决了。
os.getenv('name of the key')
where name of the key
is key defined in Bluemix UI. name of the key
是在Bluemix UI中定义name of the key
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.