我解決這個..
>>> for i in nova.availability_zones.list():
... print i
...
<AvailabilityZone: internal>
<AvailabilityZone: nova>
<AvailabilityZone: test_zone>
>>> dir(i)
['HUMAN_ID', 'NAME_ATTR', '__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattr__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_add_details', '_append_request_id', '_info', '_loaded', 'api_version', 'append_request_ids', 'get', 'hosts', 'human_id', 'is_loaded', 'manager', 'request_ids', 'request_ids_setup', 'set_loaded', 'to_dict', 'x_openstack_request_ids', 'zoneName', 'zoneState']
>>>
>>> i.to_dict()
它扔出去在快譯通一切。一切都比以前從未提前。我想知道爲什麼我只能通過迭代獲得.to_dict
?