如果你想用python从Azure blob读取文件,请参考以下代码
from azure.storage.blob import BlobServiceClient
connection_string=''
blob_service_client = BlobServiceClient.from_connection_string(connection_string)
container_client = blob_service_client.get_container_client("<container name>")
blob_client = container_client.get_blob_client("<blob name>")
blob_client.download_blob().readall() # read blob content as string
Run Code Online (Sandbox Code Playgroud)
更多详情请参考文档
| 归档时间: |
|
| 查看次数: |
11052 次 |
| 最近记录: |