<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Teeeeesting的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Teeeeesting</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Teeeeesting]]></copyright><item><title><![CDATA[python（day032——面向对象5）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/115309820</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/115309820</guid><author>Teeeeesting</author><pubDate>Mon, 26 Apr 2021 20:05:07 +0800</pubDate><description><![CDATA[复习：

类：属性（数据）+行为（方法）

数据：将来要使用的

方法：管理数据，指定管理数据的规则

属性：实例变量（每个实例各自独立，self.XXX，且可以跨实例方法来使用）

     类变量（所有实例共享，都可以使用，类名.XXX，如果实例变量和类变量不重名，也可以使用self.XXX访问类变量）

行为：方法

     实例方法（第一个参数都是self，调用的时候self是不用传值的，编译器自己传值。管理每个事例中的数据）

     类方法（装饰器@classm...]]></description><category></category></item><item><title><![CDATA[python（day031——面向对象4）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/108132704</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/108132704</guid><author>Teeeeesting</author><pubDate>Mon, 29 Mar 2021 19:59:13 +0800</pubDate><description><![CDATA[1.判断类之间的关系

使用issubclass()或者isinstance()方法来检测类之间的关系。如果obj是Class类的实例对象或者是一个Class子类的实例对象则返回True，否则返回False。

2.多重继承


class House:
    def __init__(self,length,width,height):
        self.length=length
        self.width=width
        self.height=height

    ]]></description><category></category></item><item><title><![CDATA[day007——CSS浮动布局和盒模型]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/112317333</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/112317333</guid><author>Teeeeesting</author><pubDate>Tue, 12 Jan 2021 16:49:53 +0800</pubDate><description><![CDATA[1.CSS浮动：就是让块级标签不独占一行。目的（使用场景）：把块级标签元素可以排在一行上。

2.浮动的原理：就是让元素脱离文档流，不占用标准流

3.float的属性值：

left：左浮动

right：右浮动

none：默认值，不浮动


&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&gt;浮动&lt;/title&gt;
    &lt]]></description><category></category></item><item><title><![CDATA[day006——CSS选择器和伪元素]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/112236551</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/112236551</guid><author>Teeeeesting</author><pubDate>Wed, 06 Jan 2021 21:48:13 +0800</pubDate><description><![CDATA[1.CSS伪类选择器：

伪类：专门用来表示元素的一种特殊状态。

常用伪类选择器：

  1）:link/:visited/:hover/:active

  2）:focus获得焦点

  3）:first-child/:last-child/:nth-child(number)


&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&...]]></description><category></category></item><item><title><![CDATA[day005——CSS字体和背景]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/110132951</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/110132951</guid><author>Teeeeesting</author><pubDate>Thu, 26 Nov 2020 10:48:42 +0800</pubDate><description><![CDATA[1.CSS字体

1）font-size：字号（px/%）



2）font-family：字体（黑体/宋体/楷体）



3）font-style：样式（normal/italic/oblique）



4）font-weight：加粗（normal/bold/bolder/lighter/100-900）



5）line-height：行高（px/em/数字（倍数））



6）color：颜色（颜色单词/rgb()-&gt;:0-255,g:0-255,b-0-255/16进制（以#开头，后跟]]></description><category></category></item><item><title><![CDATA[day004——CSS]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/110118002</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/110118002</guid><author>Teeeeesting</author><pubDate>Wed, 25 Nov 2020 15:46:22 +0800</pubDate><description><![CDATA[1.CSS：层叠样式表，用来美化网页。做到结构（HTML）和表现（CSS）分离。

2.基本语法：

    选择器{

         属性：属性值

    }

3.引用方式：行间样式、内部样式、外部样式、导入外部样式。

行间样式：直接在标签上书写样式、
	内部样式：在文件的内部书写样式
	  &lt;style&gt;
	     样式内容
	  &lt;/style&gt;
	外部样式：（1）先创建一个css文件；（2）再用link标签引入这...]]></description><category></category></item><item><title><![CDATA[day003——HTML初接触]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/109775041</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/109775041</guid><author>Teeeeesting</author><pubDate>Fri, 20 Nov 2020 20:07:55 +0800</pubDate><description><![CDATA[1.标签由标签名、标签属性和文本内容三部分组成。（注意：单标签没有文本内容）

2.标签属性是对标签的一种描述方式。

3.标签属性分通用属性、自由属性和自定义属性。

4.通用属性：所有标签都具有的属性。（除了br标签之外）

id：用来给标签取一个唯一的名称。在一个网页中必须唯一
	class：用来给标签取一个类名称。可重复。
	style：用来设置该标签的行内样式
	title：当鼠标悬停该标签时的展示

&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt]]></description><category></category></item><item><title><![CDATA[day002——HTML初接触]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/109741688</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/109741688</guid><author>Teeeeesting</author><pubDate>Tue, 17 Nov 2020 22:27:10 +0800</pubDate><description><![CDATA[1.标签属性：属性名=属性值，起到附加说明补充要求的作用。不是所有标签都有属性，比如br标签。

2.单标签：换行&lt;br/&gt;、水平线&lt;hr/&gt;、图片标签&lt;img/&gt;、文本&lt;input/&gt;、link标签&lt;link/&gt;、元信息标签&lt;meta/&gt;。

3.文本格式化标签：就是通过标签来美化文本外观


	b和strong：都有加粗作用，但strong除了加粗还有强调作用。注：强调主要用于SEO（搜索引擎优化）时，便于提取对应关键字
	
	
	]]></description><category></category></item><item><title><![CDATA[day001——HTML初接触]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/109721588</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/109721588</guid><author>Teeeeesting</author><pubDate>Tue, 17 Nov 2020 09:58:31 +0800</pubDate><description><![CDATA[1.HTML：超文本标记语言。（一种标示性语言，不是编程语言，是标记语言，不能使用逻辑运算。通过标签将文档格式进行统一，是分散网络资源连接为一个逻辑整体）

标记语言是一套标记标签(markup tag)
	HTML用标记标签来描述网页内容
2.静态网页和动态网页的区别：

静态：网页中没有程序代码，只有HTML（即：超文本标记语言），一般后缀为.html,.htm,或者.xml等。虽然静态网页的页面一旦做成，内容就不会再改变了。
	动态：页面代码虽然没有变化，但是显示内容可以随着时间、环境或者数据库操作.]]></description><category></category></item><item><title><![CDATA[python（day030——面向对象3）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/108033719</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/108033719</guid><author>Teeeeesting</author><pubDate>Sun, 16 Aug 2020 16:09:16 +0800</pubDate><description><![CDATA[1.面向对象编程：通过类来进行编写程序

面向过程：c语言，不适用类的方式

类的好处：将一个东西的状态封装到实例变量中，通过实例方法制定维护状态（实例变量和类变量）的规则，一次来实现数据的安全和一致性，减少脏数据。


class Person: #类定义，类对象：类变量和方法
    COUNT=0 #类变量
    def __init__(self,name,age):  #构造函数（方法）
        self.name=name #name是局部变量，存到实例变量中
        self]]></description><category></category></item><item><title><![CDATA[python（day029——面向对象2）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/108021603</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/108021603</guid><author>Teeeeesting</author><pubDate>Sat, 15 Aug 2020 19:18:27 +0800</pubDate><description><![CDATA[封装的好处：

1.写起来更简洁

2.维护更方便

3.将细节隐藏

类=变量（实例变量+类变量）+操作他们的方法：局部变量

本质：把需要管理的数据封装到实例里，然后基于类中的方法定义规则，以此来实现业务数据的完整性和一致性


class Person:  # 父类
    Count = 0

    def __init__(self, name):
        self.name = name
        print(id(self.name))

    def get_name(se]]></description><category></category></item><item><title><![CDATA[python（day028——面向对象1）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/107794296</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/107794296</guid><author>Teeeeesting</author><pubDate>Tue, 04 Aug 2020 19:59:50 +0800</pubDate><description><![CDATA[#使用类的编程方式，叫做面向对象编程，OOP
#objectorientedprogramming


age = 100  #全局变量，在当前文件中，可以被访问
class Resume:  # 简历模板，类对象

    count = 0 #类变量，在内存中只保存一个地址。做统计，或者是不同实例可以一起访问的公有变量。

    def __init__(self, name, age):
        #不加self的变量叫做局部变量，只能在当前方法中使用
        #加self的变量叫..]]></description><category></category></item><item><title><![CDATA[python（day027——集合、时间、类）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/107671607</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/107671607</guid><author>Teeeeesting</author><pubDate>Wed, 29 Jul 2020 21:22:50 +0800</pubDate><description><![CDATA[1.集合

会过滤掉重复内容。set内元素没有顺序，不能用序号取值。


&gt;&gt;&gt; a=set("hello")
&gt;&gt;&gt; a
{'o', 'e', 'l', 'h'}
&gt;&gt;&gt; set((1,2,3))
{1, 2, 3}
&gt;&gt;&gt; a.add("abc")  #集合的增加
&gt;&gt;&gt; a
{'h', 'o', 'e', 'abc', 'l'}
&gt;&gt;&gt; a.update("abc")   #集合的增加
&gt;]]></description><category></category></item><item><title><![CDATA[python（day026——异常2）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/107579212</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/107579212</guid><author>Teeeeesting</author><pubDate>Sat, 25 Jul 2020 21:23:25 +0800</pubDate><description><![CDATA[1.异常


'''
try:
  &lt;语句&gt;#可能发生异常的代码 
except&lt;名字&gt;：
  &lt;语句&gt;#如果在try部份引发了'name'异常 
except&lt;名字&gt; as &lt;异常参数&gt;:
  &lt;语句&gt;#如果引发了‘name’异常，获得附加的异常对象 
else:
  &lt;语句&gt;#如果没有异常发生
'''

print(1)
try:
    int("abc")
except ValueError:
  ...]]></description><category></category></item><item><title><![CDATA[python（day025——文件和目录操作4）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/107575372</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/107575372</guid><author>Teeeeesting</author><pubDate>Sat, 25 Jul 2020 14:03:43 +0800</pubDate><description><![CDATA[练习：


#将两个list，连接[(1,4),(2,5),(3,6)]：l1=[1,2,3] l2=[4,5,6]
l1=[1,2,3]
l2=[4,5,6]
l=[]
for i in range(3):
    t=(l1[i],l2[i])
    l.append(t)
print(l)


#生成二维数组[[0,1,2],[3,4,5],[6,7,8]]
result=[]
flag=[]
for i in range(9):
    flag.append(i)
    if len(flag]]></description><category></category></item><item><title><![CDATA[python（day024——模块）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/107222264</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/107222264</guid><author>Teeeeesting</author><pubDate>Tue, 14 Jul 2020 17:32:24 +0800</pubDate><description><![CDATA[1.创建、引用自己的模块

相同文件目录下：



引用，调用：import（一个python文件就是一个模块，在交互模式下，os.getcwd()的路径必须和这个模块文件的路径处于同一级，否则在import的时候会找不到）


&gt;&gt;&gt; import test
&gt;&gt;&gt; print(test.x)
100
&gt;&gt;&gt; print(test.add(1,2))
3


...]]></description><category></category></item><item><title><![CDATA[python（day023——文件和目录操作3）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/107159058</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/107159058</guid><author>Teeeeesting</author><pubDate>Tue, 07 Jul 2020 19:01:15 +0800</pubDate><description><![CDATA[1.读写

"w+"：打开一个文件用于读写。如果该文件已存在则打开文件，并从开头开始编辑，即原有内容会被删除。如果该文件不存在，创建新文件。


&gt;&gt;&gt; fp=open("aa.txt","w+")
&gt;&gt;&gt; fp.write("好好学习\n")
5
&gt;&gt;&gt; fp.write("天天向上\n")
5
&gt;&gt;&gt; fp.seek(0,0)
0
&gt;&gt;&gt; fp.readline()
'好好学习\n'
&gt;&gt;&gt; fp]]></description><category></category></item><item><title><![CDATA[python（day022——文件操作2）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/107142086</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/107142086</guid><author>Teeeeesting</author><pubDate>Sun, 05 Jul 2020 19:39:13 +0800</pubDate><description><![CDATA[1.文件读取：fp.read()

https://www.runoob.com/python/python-func-open.html
模式
			描述
		r
			以只读方式打开文件。文件的指针将会放在文件的开头。这是默认模式。
		rb
			以二进制格式打开一个文件用于只读。文件指针将会放在文件的开头。这是默认模式。
		r+
			打开一个文件用于读写。文件指针将会放在文件的开头。
		rb+
			以二进制格式打开一个文件用于读写。文件指针将会放在文件的开头。
		w
			打开一个文件只用]]></description><category></category></item><item><title><![CDATA[python（day021——文件1）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/107071747</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/107071747</guid><author>Teeeeesting</author><pubDate>Thu, 02 Jul 2020 14:45:25 +0800</pubDate><description><![CDATA[1.文件操作：读、写、追加

读：open（参数1：文件路径，参数2：打开模式，参数3：文件编码）
文件路径：

相对路径：在E盘下a.txt

绝对路径：e:\\test\\a.txt

fp.close()




fp=open("e:\\b.txt",encoding="gbk")
content=fp.read()
fp.close()
print(content)

2.读的时候处理文件状态：


import os

if os.path.exists("e:\\axxxxx.txt"):
 ]]></description><category></category></item><item><title><![CDATA[python（day020——异常1）]]></title><link>https://blog.youkuaiyun.com/Teeeeesting/article/details/107049597</link><guid>https://blog.youkuaiyun.com/Teeeeesting/article/details/107049597</guid><author>Teeeeesting</author><pubDate>Wed, 01 Jul 2020 20:46:03 +0800</pubDate><description><![CDATA[1.try


print(1)
try:
    a=1/0
    print("***********")
except:#拦截所有出现的异常错误，除了语法错误
       #如果出现异常，则拦截后面语句，直接跳转执行except
    print("some error occur!")
print(2)

print(1)
try:
    a = 1
    print("***********")
except:
    # 如果try中没有异常错误发生，则不执行except
    p.]]></description><category></category></item></channel></rss>