Python: Built-in Functions -hasattr(), getattr(), setattr(),delattr(), issubclass()

preview_player
Показать описание
Python: Built-in Functions hasattr(object, name), getattr(object, name[, default]),setattr(object, name, value),delattr(object, name) issubclass(class, classinfo),
Рекомендации по теме
Комментарии
Автор

Nice presentation style, keep up the good work.

cosmicallyderived
Автор

Excellent tutorial! But I need your help with a work I got. I am new to python and I find things pretty difficult. I am not a programmer, I am a linguist and I want to learn more about programming. I want to create a class that has 5 variables (x, y, z, B etc.). Each of these has a number- value or 2 number values. The set of all the instances (x=1, y=5, 3, z=0 etc.) will give me a string as a return. Now, I am lost to this, cause I learned classes and how they work, but I can't create one by myself. Could you please help me?

mithridil