class Junlin(dict):
def __init__(self, *args, **kwargs):
super(Junlin, self).__init__(*args, **kwargs)
self.__dict__ = self
domain = "".join([c + ('.' if i == 3 else '') for i, c in enumerate(self.first_name)])
self.website = "https://" + self.last_name + "." + domain # https://Liu.Junl.in
self.email = self.last_name + "@" + domain # [email protected]
if __name__ == '__main__':
me = Junlin(
last_name="Liu",
first_name="Junlin",
educations=[["Zhejiang University", "Master", "Software Engineering"]],
hobbies=[i for i in "๐ป๐๐ท๐ธ๐ฎ๐ค"],
)
print(me)
noclin / blog-public Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://noclin-blog.netlify.app/