·CLASS

For example,

 

This is a good example to show how to use CLASS in python.

Just add some sentences as followed, that shows some ways to modify elements.

·        Inheritance

o   In order to make codes more beautiful,put some properties that only electricCar has into a new class.

  • Import Class:

    • Import       single class

  • Import Many class in one module

  • Import many class      from only one module

  • Import all      module[RECOMMEND]

  • Import all class      from module[NOT RECOMMEND]