Skip to content

Instantly share code, notes, and snippets.

@diofeher
Created October 7, 2010 17:41
Show Gist options
  • Save diofeher/615515 to your computer and use it in GitHub Desktop.
Save diofeher/615515 to your computer and use it in GitHub Desktop.
#coding:utf-8
class Desktop(object):
"""
Computador novinho, ainda está todo embalado.
"""
def __init__(self, preco):
self.preco = preco or 'a combinar'
self.monitor = 'Monitor AOC Widescreen 19'' 912Vwa'
self.cpu = 'Daten'
self.extras = {'mouse':True, 'mousepad': True, 'teclado': True}
self.estabilizador = 'Sidelaser Ragtech'
self.processador = 'PDC E5400 2.7GHZ - Intel 4-series Core 2 Quad'
self.placa_de_video = 'NVIDIA GEFORCE 512MB PCI-E'
self.memoria = 2 * '1GB DDR2 '
self.placa_mae = 'GA-EP41-UD3L - Giga-byte Technology for Intel Core Processor Family '
if __name__=="__main__":
computador_novo = Desktop(1300)
print u'Alguém quer comprar? %s :D' % computador_novo
@diofeher
Copy link
Author

aeuaehaeu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment