![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
爱coding的蜗牛
我是一只爱coding的蜗牛,爱coding不求甚解,一步一步往前爬,一口一口把你吃掉。。。
展开
-
python面向对象编程基础
python面向对象编程基础: 1、类的创建和实例化 2、继承、多态、多重继承 类的继承是一种纵向的关系,def class(BaseClass),class类继承BaseClass,拥有BaseClass的属性和方法 3、类的组合 类的组合是一种横向关系 4、内部属性 由于python语言没有public、private这样的关键字定义属性是公有还是私有原创 2016-01-31 17:56:28 · 383 阅读 · 0 评论 -
python中字典内置函数的用法解析
python字典内置函数的使用原创 2016-01-29 19:01:06 · 4356 阅读 · 0 评论 -
python3.x+django的mysql驱动安装问题
Python版本:3.5.1Django版本:1.9django使用的数据库改成mysql,在setting.py修改如下配置修改成:DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mydb', #新建数据库名称 '转载 2016-03-20 11:30:10 · 2280 阅读 · 0 评论 -
python属性访问的相关内容
#-*-coding:utf-8 -*-'''属性访问的相关内容__slots__的用法属性的动态绑定'''from types import MethodTypeclass Stduent(): classname='student' #类的属性 __slots__ = ('name', '__age','__score','study') # 用tuple定义原创 2016-02-24 11:14:47 · 419 阅读 · 0 评论 -
win7 or win10 64位版本安装pyspider的问题
玩爬虫怎么能少得了pyspider这个神扩展,可是由于博主习惯(没钱买mac,用不惯linux)用windows作为开发环境,在安装pyspider的时候居然报错了,我们来看看pyspider的官方解释吧: Does pyspider Work with Windows? Yes, it should, some users have made it work on Windows.原创 2016-03-23 10:18:52 · 2765 阅读 · 0 评论