Skip to content

Commit af41db4

Browse files
m41b3cm41b3c
authored andcommitted
Criado atributos dinâmicos.
1 parent ba9544f commit af41db4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

OO/pessoa.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ def cumprimentar(self):
2626

2727
jacir.sobrenome = 'Pieniak'
2828
print(jacir.sobrenome)
29-
29+
print(jacir.__dict__)
3030
# deleta o atributo dinâmico em tempo de execução
3131
del jacir.sobrenome
32+
print(jacir.__dict__)
33+
3234

3335

3436

0 commit comments

Comments
 (0)