Python基础学习-8

    类

1 类定义

    class Person:

      pass

2方法

    类中的方法,就是函数;    self代表实例本身

3初始化

    __init__(self,...)  实例化之后自动被调用,以完成初始化

4 属性

    私有属性  在属性前加一个下划线(_)和两个下划线(__)

    每日Linux命令

find  查找  find [-path]  -options

  option:

    -name  -type  -size  -exec  -print

例如 find ./ -name '*.py' -print

  find ./ -name '*.py'

  find ./! -name '*.py'

  find -size +6k

原文地址:https://www.cnblogs.com/liubosong/p/9657095.html