听起来您想获得last_modified
在 Azure ML Studio 中使用 Python 来获取 Azure 上 blob 的属性。请尝试使用下面的代码。
for blob in generator:
last_modified = blob.properties.last_modified
print(last_modified)
你可以尝试编码<object>.__dict__
如果您不确定哪些属性是否存在,可以在 Python 交互式环境中显示 Python 对象的属性,例如如下所示。
# Show the properties of a Blob object
>>> blob.__dict__
{'content': '', 'metadata': {}, 'snapshot': None, 'name': 'test.tmp',
'properties': <azure.storage.blob.models.BlobProperties object at 0x7f4f8f870110>}
# Show the properties of the BlobProperties Object
>>> blob.properties.__dict__
{'content_length': 99831, 'blob_type': 'BlockBlob', 'append_blob_committed_block_count': None,
'last_modified': datetime.datetime(2016, 11, 23, 5, 46, 10, tzinfo=tzutc()), 'content_range': None, 'etag': '"0x8D4136407173436"', 'page_blob_sequence_number': None, 'content_settings': <azure.storage.blob.models.ContentSettings object at 0x7f4f8f870510>, 'copy': <azure.storage.blob.models.CopyProperties object at 0x7f4f8f870650>, 'lease': <azure.storage.blob.models.LeaseProperties object at 0x7f4f8f870810>}