0
处理错误而进行连接,下面的代码不工作,试图用不正确的名称和密码仍然没有给予任何错误如何处理错误而产生的Azure存储连接
block_blob_service = BlockBlobService(account_name = account_name,account_key = account_key)
try:
if block_blob_service:
print('connection successful!')
except Exception as e:
print('Please make sure the account name and key are correct.', e)