python 打印类中所有的属性

print(obj.__dict__.items())

猜你喜欢

转载自blog.csdn.net/u011939633/article/details/109096691
今日推荐