📜  python代码示例中的对象和类

📅  最后修改于: 2022-03-11 14:46:11.455000             🧑  作者: Mango

代码示例6
class IntellipaatClass:
    a = 5
    def function1(self):
        print(‘Welcome to Intellipaat’)
#accessing attributes using the class object of same name
IntellipaatClass.function(1)
print(IntellipaatClass.a)