2017-10-17  673 views 评论

Python chapter 9 learning notes

 标签:  

·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]

给我留言

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: