摘要: https://www.cnblogs.com/linhaifeng/articles/5937962.html 一.操作系统基础 操作系统:(Operating System,简称OS)是管理和控制计算机硬件与软件资源的计算机程序,是直接运行在“裸机”上的最基本的系统软件,任何其他软件都必须在操作 阅读全文
posted @ 2020-05-18 21:05 Sundance8866 阅读(158) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/6129246.html 一 客户端/服务器架构 1.硬件C/S架构(打印机) 2.软件C/S架构 互联网中处处是C/S架构 如黄色网站是服务端,你的浏览器是客户端(B/S架构也是C/S架构的一种) 腾讯作为服务 阅读全文
posted @ 2020-05-06 21:12 Sundance8866 阅读(143) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/6232220.html 一 什么是异常 异常就是程序运行时发生错误的信号(在程序出现错误时,则会产生一个异常,若程序没有处理它,则会抛出该异常,程序的运行也随之终止),在python中,错误触发的异常如下 而错 阅读全文
posted @ 2020-05-06 20:52 Sundance8866 阅读(107) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/8029564.html 一 前言 元类属于python面向对象编程的深层魔法,99%的人都不得要领,一些自以为搞明白元类的人其实也只是自圆其说、点到为止,从对元类的控制上来看就破绽百出、逻辑混乱,今天我就来带大 阅读全文
posted @ 2020-05-02 12:53 Sundance8866 阅读(151) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/6204014.html 五 __getattribute__ 回顾__getattr__ class Foo: def __init__(self,x): self.x=x def __getattr__(se 阅读全文
posted @ 2020-04-25 12:11 Sundance8866 阅读(140) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/6204014.html 一 isinstance(obj,cls)和issubclass(sub,super) isinstance(obj,cls)检查是否obj是否是类 cls 的对象 class Foo( 阅读全文
posted @ 2020-04-21 21:03 Sundance8866 阅读(120) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/7340687.html 一 多态 多态指的是一类事物有多种形态 动物有多种形态:人,狗,猪 import abc class Animal(metaclass=abc.ABCMeta): #同一类事物:动物 @ 阅读全文
posted @ 2020-04-20 20:18 Sundance8866 阅读(171) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/6182264.html https://www.cnblogs.com/linhaifeng/articles/7340801.html#_label4 静态属性 特性(property) 什么是特性prope 阅读全文
posted @ 2020-04-18 22:53 Sundance8866 阅读(228) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/6182264.html 可参考下记 https://www.cnblogs.com/wupeiqi/p/4493506.html https://www.cnblogs.com/wupeiqi/p/476680 阅读全文
posted @ 2020-04-12 21:23 Sundance8866 阅读(237) 评论(0) 推荐(0) 编辑
摘要: cal.py #!/usr/bin/env python # -*- coding:utf8 -*- import re def calculation(x,y,m): if m=='+' or m=='--': return x+y elif m=="-" or m=='+-' or m=='-+ 阅读全文
posted @ 2020-04-11 22:58 Sundance8866 阅读(164) 评论(0) 推荐(0) 编辑