Prevent creating new attributes outside __init__

前端 未结 11 1511
迷失自我
迷失自我 2020-12-04 07:23

I want to be able to create a class (in Python) that once initialized with __init__, does not accept new attributes, but accepts modifications of existing attri

11条回答
提交回复
热议问题