# ! Usr / bin / env Python # - * - Coding: UTF-8 - * - class MyBlogger: DEF __init__ (Self, name, Web): self.name = name self.web = Web Print ( ' my blog name :% S ' % self.name) Print ( ' my blog page:% S ' % self.web) @staticmethod DEF the cause is (args): ' '' : param args: tuple : return: '' ' Print ( ' opening blog garden reasons: ') IF args: for index, I in the enumerate (args,. 1 ): Print ( ' % D,% S \ n- ' % (index, I)) MB = MyBlogger ( ' wengxiaobin95 ' , ' HTTPS: //www.cnblogs .com / wengxiaobin / ' ) the cause is = ( ' personally like Python duck model and packages ' , ' would like to share some of the some of the ideas about learning ' , ' I remember when learning object-oriented, the most impressive of all are the object , so the blog will try to show in the form of classes and objects ' , ' with classes and objects, other people copy my class, you can use the generated objects, very convenient') mb.cause(cause)