class.py
class Person(object): def say_something(self): print('hello') person = Person() person.say_something() #hello
Recommended Posts