We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f9f75 commit 69bd946Copy full SHA for 69bd946
1 file changed
oo/pessoa.py
@@ -1,4 +1,6 @@
1
class Pessoa:
2
+ olhos = 2
3
+
4
def __init__(self, *filhos, nome=None, idade=31):
5
self.nome = nome
6
self.idade = idade
@@ -18,9 +20,18 @@ def cumprimentar(self):
18
20
jose.sobrenome = 'Bustamante'
19
21
print(jose.sobrenome)
22
23
+ francisco.olhos = 1
24
25
print(francisco.__dict__)
26
print(jose.__dict__)
27
28
del jose.filhos
29
30
31
32
+ print(Pessoa.olhos)
33
+ print(id(Pessoa.olhos))
34
+ print(jose.olhos)
35
+ print(id(jose.olhos))
36
+ print(francisco.olhos)
37
+ print(id(francisco.olhos))
0 commit comments