【Python】判断属性是否存在

使用hasattr内置函数。

posted @ 2023-12-03 13:13  NotReferenced  阅读(59)  评论(0)    收藏  举报