2012-04-12 27 views
1

請注意以下幾點:Jython 2.5.3b1中的ZipFile.open在哪裏?

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方法?

謝謝。

回答