# python 使用类创建结构体 class Myclass(object): class Struct(object): def __init__(self, name, age, job): self.name = name self.age = age self.job = job def make_struct(self, name, age, job): return self.Struct(name, age, job) myclass = Myclass() test1 = my