03 2018 档案

摘要:1. 源码安装 wget https://downloads.mysql.com/archives/get/file/mysql-5.6.36.tar.gz yum install -y gcc gcc-c++ automake autoconf yum -y install cmake bison 阅读全文
posted @ 2018-03-16 20:13 golangav 阅读(448) 评论(0) 推荐(0)
摘要:mysql 收集静态文件 nginx配置 # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian 阅读全文
posted @ 2018-03-13 18:34 golangav 阅读(486) 评论(0) 推荐(0)
摘要:Http 阅读全文
posted @ 2018-03-09 16:21 golangav 阅读(285) 评论(0) 推荐(0)
摘要:爬虫(一) requests 介绍 阅读全文
posted @ 2018-03-09 16:18 golangav 阅读(235) 评论(0) 推荐(0)
摘要:property class Foo: def __init__(self,name): self.__name = name @property def name(self): return self.__name @name.setter #修改属性时使用 def name(self,newna 阅读全文
posted @ 2018-03-09 11:09 golangav 阅读(280) 评论(0) 推荐(0)
摘要:1. Python里面match()和search()的区别? 2. 线程和进程的区别?各有什么特点? 3.进程间IPC有哪些 4. TCP/IP协议网络体系分层?每层协议有哪些 5. Python中 range和xrang区别?哪个性能更高? 阅读全文
posted @ 2018-03-06 11:28 golangav 阅读(281) 评论(0) 推荐(0)
摘要:组合 事例1:计算两个同心圆的面积 from math import pi class Circle: def __init__(self,r): self.r = r def area(self): return pi(self.r**2) class Ring: def __init__(sel 阅读全文
posted @ 2018-03-06 11:23 golangav 阅读(294) 评论(0) 推荐(0)
摘要:1. 统计一个类被实例了多少次 class A: num = 0 def __init__(self): A.num += 1 a = A() b = A() print(A.num) 阅读全文
posted @ 2018-03-05 10:35 golangav 阅读(180) 评论(0) 推荐(0)
摘要:序列化 1. 什么叫序列化 将原本的字典、列表等内容转换成一个字符串的过程就叫做序列化。 2. json dumps loads 一般对字典和列表序列化 dump load 一般对文件句柄操作 3. pickle和json的区别: pickle 可以对python中的所有数据类型序列化 json 只 阅读全文
posted @ 2018-03-02 15:19 golangav 阅读(409) 评论(0) 推荐(0)