TencentCloud / tencentcloud-sdk-python

Tencent Cloud API 3.0 SDK for Python
Apache License 2.0
616 stars 251 forks source link

[疑问]关于获取预留的环境变量 #131

Closed lfywork closed 2 years ago

lfywork commented 2 years ago

https://github.com/TencentCloud/tencentcloud-sdk-python/blob/dd84344868d1276d618904dd1d088de93bed708e/examples/common_client/describe_instances.py#L26

这一行获取到的是None 使用os.environ.get("TENCENTCLOUD_SECRETID")能够获取到一个临时的值

zqfan commented 2 years ago

环境变量是需要自己去设置的,否则不可能有值,你这个环境是在哪儿呢?

zqfan commented 2 years ago

长时间没有信息提供,先关闭,有更新可以重开