python 类

创建一个类 以 class 开头  中间类名 以 :号结尾

例如

class Student:
        pass
View Code

创建一个静态变量

1 #-*- encoding:utf-8 -*-
2 class Student:
3         name='张三'
View Code
原文地址:https://www.cnblogs.com/pxfb/p/6891995.html