📅  最后修改于: 2022-03-11 14:45:51.167000             🧑  作者: Mango
# to print out the variable names
print(vars(YourClass))
# to print out names and values
for var in vars(YourClass):
print(getattr(YourClass, var))