Created
October 7, 2010 17:41
-
-
Save diofeher/615515 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
agora q ta em python eu do 50 conto
aeuaehaeu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do 100 conto