请注意:
PS Z:\dev\poc\SDR> jython.bat
Jython 2.5.3b1 (2.5:5fa0a5810b25, Feb 22 2012, 12:39:02)
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_27
Type "help", "copyright", "credits" or "license" for more information.
>>> from zipfile import ZipFile
>>> z=ZipFile('d:/ookla/us_aaa.zip')
>>> z.open
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: ZipFile instance has no attribute 'open'
>>> ZipFile.open
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: class ZipFile has no attribute 'open'
>>>
那么,open
方法在哪里呢?
谢谢。