user_list=[
{‘name’:’tom’,’passwd’:’123< span style="color: #800000;">‘},
{‘name’:’ubuntu’,’passwd’:’123< span style="color: #800000;">‘},
{‘name’:’centos’,’passwd’:’123< span style="color: #
Tag: decoration
Design mode – decorator mode
Define
The decorator pattern dynamically attaches responsibility to the object. To extend functionality, decorators provide a more flexible alternative than inheritance.
Implementation points