How to make a static property of the class in Python?
📁 python, ошибка
I try this:
class chantcodes : _Chat = 'CHT' @property def retu seelf._chat if I use this:
Print (Chatcodes.chat + 'ANY_STR' )
then an error appears:
unsuporteded Operand Type (S) for +: 'Property' and 'str'
How to create a static property?
Ответов пока нет.
Войдите чтобы оставить ответ
Блоги