List files in the zip file,listzip,import zipfi
List files in the zip file,listzip,import zipfi
import zipfilezz = zipfile.ZipFile('z.zip')zz.printdir()for name in zz.namelist(): print '%s: %r' % (name, zz.read(name))zz.close()
- String method: With a minor replacement,minorreplaceme
- Default parameter values,parametervalues,# positional
- List index(x),listindex,# Return the
- Define function to intersect Strings and lists,interse
- Function returns another function,functionreturns,def
- Introducing globals(),introducingglobals,# globals()
热门文章:
相关内容
- String method: With a minor replacement,minorreplacement,quote = 'P
- Default parameter values,parametervalues,# positional
- List index(x),listindex,# Return the
- Define function to intersect Strings and lists,intersectstrings,def
- Function returns another function,functionreturns,def knights(
- Introducing globals(),introducingglobals,# globals()
- String indexing: from front or end,indexingfront,S = 'spam'pr
- Handling I/O Errors,handlingerrors,# shows how
- Reads a single line from the file,readssingle,f=open('/tmp
- Check a user name and PIN code,checkpin,database = [
评论关闭