title: AttributeError: 'module' object has no attribute 'ZipFile'
body: <p>just like i said,it's a very strange question.i hope you guys could help me solve this question  thanks</p>
  
  <p><strong>the following is my code:</strong></p>
  
  <pre><code>import os
  import zipfile
  
  filename = "E:\\test.zip"
  currdir = "E:\\vpn\\"
  
  os.chdir(currdir)
  
  tfile = zipfile.ZipFile(filename, 'w')
  files = os.listdir(currdir)
  for f in files:
      tfile.write(f)
  
  for f in tfile.namelist():
      print "added %s"%f
  
  tfile.close()
  </code></pre>
  
  <p><strong>the error message:</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\pydemo\src\gzip\zipfile.py", line 7, in &lt;module&gt;
      import zipfile
    File "C:\pydemo\src\gzip\zipfile.py", line 14, in &lt;module&gt;
  tfile = zipfile.ZipFile.(filename, 'w')
  AttributeError: 'module' object has no attribute 'ZipFile'
  </code></pre>