06 2018 档案

摘要:一、安装编译工具及库文件 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel 二、首先要安装 PCRE PCRE 作用是让 Nginx 支持 Rewrite 功能。 1、下载 PCRE 安装包,下载地址: http://downloads.sourceforge.net/project/pcre... 阅读全文
posted @ 2018-06-27 16:53 道高一尺 阅读(177) 评论(0) 推荐(0) 编辑
摘要:#coding=utf-8 #repr方法字符串输出实例对象的值 class CountFromBy(object): def __init__(self, val=0, incr=1): self.val = val self.incr = incr def increase(self): self.val += self.i... 阅读全文
posted @ 2018-06-26 08:25 道高一尺 阅读(136) 评论(0) 推荐(0) 编辑
摘要:1、建立发布文件夹,内涵README.txt, setup.py vsearch.py(自写程序) 其中 setup.py如下 #coding=utf-8 from setuptools import setup setup( name = "vsearch", version = "1.0", description = "The head first Python... 阅读全文
posted @ 2018-06-12 07:26 道高一尺 阅读(260) 评论(0) 推荐(0) 编辑
摘要:#coding=utf-8 m = {"a", "b", "c", "d"} n = {"d", "e", "f", "b"} #并集 p = m.union(n) print p #哪些不是共有元素 q = m.difference(n) print q #查找共同元素 r = m.intersection(n) print r 阅读全文
posted @ 2018-06-07 07:29 道高一尺 阅读(126) 评论(0) 推荐(0) 编辑