Python Class

  Defining a class in Python is simple. As with functions, there is no separate interface definition. Just define the class and start coding. A Python class starts with the reserved word class, followed by the class name. Technically, that's all that's required, since a class doesn't need to inherit from any other class.

  • The Simplest Python Class
class TestClass:
pass
Work for fun,Live for love!
原文地址:https://www.cnblogs.com/allenblogs/p/1812787.html