में h5py का उपयोग कर python2.7
में चाबियाँ, मैं विश्लेषण कर सकते हैं एक hdf5
फ़ाइलों कुंजीकी खोज python3
$ python
>>> import h5py
>>> f = h5py.File('example.h5', 'r')
>>> f.keys()
[u'some_key']
का उपयोग हालांकि, python3.4
में, मैं कुछ अलग मिलता है:
$ python3 -q
>>> import h5py
>>> f = h5py.File('example.h5', 'r')
>>> f.keys()
KeysViewWithLock(<HDF5 file "example.h5" (mode r)>)
KeysViewWithLock
क्या है, और कैसे क्या मैं पाइथन 3 में अपनी एचडीएफ 5 कुंजी की जांच कर सकता हूं?
बस पाया: 'सूची (f.keys()) '। – user14717
आह, मैं अपना जवाब अपडेट करना भूल गया। – Joel