Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 214 Bytes

72_static_methods.md

File metadata and controls

10 lines (10 loc) · 214 Bytes

class Dog(object): ... @staticmethod ... def do_something(): ... print "Called this method." ... Dog.do_something() Called this method. x = Dog() x.do_something() Called this method.