what can i get from object.attribute? what does it do?
Thank you :)
It`s better that you make a simple class and post that code.
Then ask what you dont understand.
If you dont now how to make a class at all,read some tutorials or seek google.
i just don't know when i can use object.attribute?
At anytime, dinner... literally anytime.
An attribute is a way to get from one object to another. Apply the power of the almighty dot.
There is a book out titled "Python Attributes and Methods", I suggest you read it. You can download a pdf version from:
http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.pdf
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.