本帖最后由 nullbert 于 2012-11-09 16:54 编辑 [root@localhost ~]# netstat -antp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 3382/./hpiod tcp 0 0 0.0.0.0:23587 ...
[code] a=zip(("a","b","c"),(1,2,3)) print(a) [/code]执行结果[code] <zip object at 0x01EA93C8> [/code]书上说zip()函数返回一个元组列表。为什么运行结果不是呢
def zipFiles(srcPath, zipFilename, arcName="/", CompressMode = 0): """ Description: zip all file in srcPath """ tmpFile = None zipFile = None flag = None try: tmpFile = file(zipFilename,'wb') zipFile = zipfile.zipFile(tmpFile,"w") flag = __addTozip(srcPath, zipFile, arcName, CompressMode ) finally: if zipFile: zipFile.clo...
Level 6zip document: http://docs.python.org/library/zipfile.html 图片中有一条牛仔裤(拉链的英文名为:zipper)。 Title提示为pair. 源码中有〈!-- 〈-- zip --〉字样。 从http://www.pythonchallenge.com/pc/def/channel.zip 下载zip文件 解压这个zip文件,里面有一个readme文件提示: welcome to my zipped list. hint1: start from 90052 hint2: answer is inside the zip 从这里可以看出跟Level 4差不多,就是反...