我无法列出特定容器中的斑点
我正在使用Python的正式代码列出:
from azure.storage.blob import BlockBlobService
account_name = 'xxxx'
account_key = 'xxxx'
container_name = 'yyyyyy'
block_blob_service = BlockBlobService(account_name=account_name,
account_key=account_key)
print("\nList blobs in the container")
generator = block_blob_service.list_blobs(container_name)
for blob in generator:
print("\t Blob name: " + blob.name)
我收到了错误:
raise AzureException(ex.args[0])
AzureException: can only concatenate str (not "tuple") to str
与Azure存储相关的软件包的安装版本为:
azure-mgmt-storage 2.0.0
azure-storage-blob 1.4.0
azure-storage-common 1.4.0
答案 0 :(得分:0)