Baixe o app para aproveitar ainda mais
Prévia do material em texto
20082008 THE ZEN OF PYTHONTHE ZEN OF PYTHONTHE ZEN OF PYTHONTHE ZEN OF PYTHON Giuseppe RomagnoliGiuseppe RomagnoliGiuseppe RomagnoliGiuseppe Romagnoli This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Versão.: 08/06/09Versão.: 08/06/09 SERPROSERPRO TrabalhoTrabalhoTrabalhoTrabalho Serviço Serviço Federal Federal de de Processamento Processamento de de DadosDados This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python SERPROSERPROSERPROSERPRO Maior Provedor do Governo de tecnologia deMaior Provedor do Governo de tecnologia de Informações e ComunicaçõesInformações e Comunicações Clientes: Ministério da Fazenda, Clientes: Ministério da Fazenda, Planejamento, Justiça, Transportes, EducaçãoPlanejamento, Justiça, Transportes, Educaçãoe Gabinete Civil e Presidência.e Gabinete Civil e Presidência. Mais de 3 bilhões de Transações/ano Mais de 3 bilhões de Transações/ano Múltiplas plataformas e padrões abertos Múltiplas plataformas e padrões abertos ASP + ISP + NSP ASP + ISP + NSP This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python ConteúdoConteúdoConteúdoConteúdo O que é o Python ? O que é o Python ? Quem usa Python ? Quem usa Python ? Por que usar Python ? Por que usar Python ? Como é o Python ? Como é o Python ? This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Python 3Python 3 Mas Mas afinal afinal o o que que significa significa Python Python ??Mas Mas afinal afinal o o que que significa significa Python Python ?? This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python IntroduçãoIntrodução Segundo seu Segundo seu criador a criador a linguagem folinguagem foi concebida pi concebida para ocupar ara ocupar o espaçoo espaço que existia entre as linguagens C/C++ e o shell.que existia entre as linguagens C/C++ e o shell. HistHistóóricorico OO PythonPython foi criado em 1990 por foi criado em 1990 por Guido van Rossum,Guido van Rossum, a para partir de tir de uma uma outra outra linguagem linguagem chamadachamada ABC ABC, que, que tinha tinha como como foco foco original original usuários usuários como como físicos físicos ee engenheiros.engenheiros. Final do Anos 80Final do Anos 80 ABC ABC ABC ABC AMOEBAAMOEBAAMOEBAAMOEBA PythonPythonPythonPython ScriptScriptScriptScript PythonPythonPythonPython 19901990 This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python ICONICONICONICON MÓDULA-3MÓDULA-3MÓDULA-3MÓDULA-3 CCCC HASKELLHASKELLHASKELLHASKELLABCABC LISPLISPLISPLISP SMALLTALKSMALLTALKSMALLTALKSMALLTALK DNADNADNADNA PERLPERLPERLPERL TCLTCLTCLTCL PYTHONPYTHONPYTHONPYTHON Wikipedia – linguagens que influenciaram o PythonWikipedia – linguagens que influenciaram o Python This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Você Você já já usou usou PythonPythonVocê Você já já usou usou Python Python ?? Você já usou o Python ?Você já usou o Python ? This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python IntroduçãoIntroduçãoIntroduçãoIntrodução Python: Python: Fácil Aprendizado Fácil Aprendizado Fácil ManutençãoFácil Manutenção Possui uma extensa biblioteca padrão Possui uma extensa biblioteca padrão Interpretada e interativa Interpretada e interativa Possui uma poderosa estruturas de dados nativa Possui uma poderosa estruturas de dados nativa Disponível com código aberto e livre Disponível com código aberto e livre Interface para outras Linguagens ( Lua, Java, C) Interface para outras Linguagens ( Lua, Java, C) Multi-plataformaMulti-plataforma É um canivete-suíço !!! É um canivete-suíço !!! This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python PYTHONPYTHONPYTHONPYTHON SCRIPTSSCRIPTSSCRIPTSSCRIPTS ESTRUTURADAESTRUTURADAESTRUTURADAESTRUTURADA FUNCIONALFUNCIONALFUNCIONALFUNCIONAL OOOOOOOO IntroduçãoIntroduçãoIntroduçãoIntrodução Múltiplos paradigmasMúltiplos paradigmas This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python # Busca em uma página web o valor do dolar comercial# Busca em uma página web o valor do dolar comercial importimport urllib urllib importimport re re site = urllib.urlopen(site = urllib.urlopen('http://economia.uol.com.br/cotacoes/''http://economia.uol.com.br/cotacoes/' ).readlines()).readlines() for for linha in site: linha in site: if if linha.find( linha.find('paralelo (em R$)''paralelo (em R$)') > 0:) > 0: valores valores = = linhalinha numeros numeros = = re.findall(re.findall(r'[0-9]+(?:\,[0-9]+)'r'[0-9]+(?:\,[0-9]+)',linha), linha) print print 'Dolar Paralelo' 'Dolar Paralelo' print print 'Compra 'Compra %s'%s' %numeros[0] %numeros[0] print print 'Venda %s''Venda %s' %numeros[1] %numeros[1] print print 'Variacao %s''Variacao %s' %numeros[2] %numeros[2] IntroduçãoIntroduçãoIntroduçãoIntrodução Exemplo de um scriptExemplo de um script Dolar ParaleloDolar Paralelo Compra 2,137Compra 2,137 Venda 2,139Venda 2,139 Variacao 1,97Variacao 1,97 This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python # -*- coding: utf-8 -*-# -*- coding: utf-8 -*- # modulo financas.py# modulo financas.py # Busca em uma página web o valor do dolar comercial# Busca em uma página web o valor do dolar comercial importimport urllib, urllib, importimport re re defdef extrai_cotacao(moeda,mercado='R$'):extrai_cotacao(moeda,mercado='R$'): “““ função para retornar a cotacao de uma moeda em seu mercado“““ função para retornar a cotacao de uma moeda em seu mercado moeda - moeda - nome nome da da moeda moeda – – mercado mercado – – tipo tipo (ex.paralelo) (ex.paralelo) ““““““ site site = = urllib.urlopen('htturllib.urlopen('http://economia.uol.cp://economia.uol.com.br/cotacoes/').readlom.br/cotacoes/').readlines()ines() numeros numeros = = [][] for for linha linha inin site: site: if if linha.find(moeda) linha.find(moeda) > > 00 andand linha.find(mercado) > 0: linha.find(mercado) > 0: numeros numeros = = re.findall(r'[0-9]+(?:re.findall(r'[0-9]+(?:\,[0-9]+)', \,[0-9]+)', linha)linha) returnreturn numeros numeros IntroduçãoIntroduçãoIntroduçãoIntrodução Estruturando o exemplo do scriptEstruturando o exemplo do script # modulo cotacao.py# modulo cotacao.py fromfrom financas import extrai_cotacao financas import extrai_cotacao cotacao= extrai_cotacao('Euro') #cotacao= extrai_cotacao('Euro') # para o euro na página nã para o euro na página não tinha mercadoo tinha mercado print "Euro - compra (%s) venda (%s)" % (cot print "Euro - compra (%s) venda (%s)" % (cotacao[0],cotacao[acao[0],cotacao[1])1]) Euro - compra (2,842) venda (2,844)Euro - compra (2,842) venda (2,844) This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python def def fatorial(num): fatorial(num): ”””fatorial de forma recursiva””””””fatorial de forma recursiva””” ifif num == 0:num == 0: returnreturn 1 1 returnreturn num*fatorial(num-1) num*fatorial(num-1) print print fatorial(5) fatorial(5) def def fatorial(num): fatorial(num): ”””fatorial de forma funcional””””””fatorial de forma funcional””” return return reduce(lambda reduce(lambda x,y:y*x,[1]+range(1,num+1))x,y:y*x,[1]+range(1,num+1)) print print fatorial(5) fatorial(5) Programação FuncionalProgramação Funcional IntroduçãoIntroduçãoIntroduçãoIntrodução This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python classclass Cesta: Cesta: def def __init__( __init__(self self ,conteudo=None):,conteudo=None): self self .conteudo = conteudo or [].conteudo = conteudo or [] def def inclui( inclui(self self ,elemento):,elemento): self self .conteudo.append(elemento).conteudo.append(elemento) def def abre_a_cesta( abre_a_cesta(self self ):): resultado resultado = = """" for for elemento in elemento in self self .conteudo:.conteudo: resultado resultado = = resultado resultado + + " " " " + + `elemento``elemento` print print "Contém: ""Contém: "+resultado+resultado nova_cesta = cesta()nova_cesta = cesta() nova_cesta.inclui(nova_cesta.inclui('uva''uva')) nova_cesta.inclui(nova_cesta.inclui('melao''melao')) nova_cesta.abre_a_cesta()nova_cesta.abre_a_cesta() Contém: 'uva' 'melao'Contém: 'uva' 'melao' IntroduçãoIntroduçãoIntroduçãoIntrodução Orientação à objetosOrientação à objetos Explicit is better than implicitExplicit is better than implicit (ZoP)(ZoP) This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python ( )( ) ""PythonPython tem sido uma parte tem sido uma parte importanteimportante na na GoogleGoogle desde o desde o inícioinício e e continuacontinua de de acordo acordo com com o o crescimento crescimento e e a a evolução evolução do do sistema. sistema. Hoje Hoje dúzias dúzias dede engenheiros daengenheiros da Google usam PythonGoogle usam Python, , e e estamos estamos procurando procurando por por maismais pessoas com habilidades na linguagem."pessoas com habilidades na linguagem." Disse Peter Norvig, diretor de busca de Disse Peter Norvig, diretor de busca de qualidade naqualidade na Google, Inc.Google, Inc. Quem usa Python ?Quem usa Python ?Quem usa Python ?Quem usa Python ? This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics http://www.google.com/ http://www.google.com/ https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Quem usa Python ?Quem usa Python ?Quem usa Python ?Quem usa Python ? "Python realiza um papel chave no ciclo "Python realiza um papel chave no ciclo de produção.de produção. Sem ele um projeto doSem ele um projeto do tamanho de tamanho de Star WarStar Wars: Episode s: Episode II seria comII seria complicado de plicado de ser realizadoser realizado. Desde a. Desde a renderização das pessoas em processamento batch até renderização das pessoas em processamento batch até a composição,a composição, PythonPython junta todas as cois junta todas as coisas juntasas juntas," disse o Tommy Burnette, Diretor Técnico da," disse o Tommy Burnette, Diretor Técnico da Industrial Light & MagicIndustrial Light & Magic.. This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Quem usa Python ? Quem usa Python ?Quem usa Python ?Quem usa Python ? “Nós escolhemos Python porque“Nós escolhemos Python porque provê a máxima produtividadeprovê a máxima produtividade, código, código claroclaro e e fácil de manterfácil de manter,, forteforte and and extensívelextensível (e crescente !) (e crescente !) bibliotecasbibliotecas, , ee excelente capacidade deexcelente capacidade de integraçãointegração com comoutras outras aplicações aplicações em em qualquerqualquer plataforma. plataforma. Python atingiu ou excedeu todas as necessidades que nós tínhamosPython atingiu ou excedeu todas as necessidades que nós tínhamos," disse," disse Steve Waterbury, Software Group Leader, NASA Steve Waterbury, Software Group Leader, NASA STEP Testbed.STEP Testbed. This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Quem usa Python ? Quem usa Python ?Quem usa Python ?Quem usa Python ? “ O Serpro criou uma fábrica virtual para desenvolver“ O Serpro criou uma fábrica virtual para desenvolver portaisportais para o para o governo federal. As ferramentasgoverno federal. As ferramentas ZOPEZOPE e e PLONEPLONE feitas em feitas em PYTHONPYTHON,, foram selecionadas para o projeto, representaram uma economia inicial deforam selecionadas para o projeto, representaram uma economia inicial de R$R$ 10 milhões10 milhões para para a a Empresa em Empresa em custo de custo de aquisição de aquisição de softwaressoftwares proprietários além d proprietários além de um aumento ve um aumento visível deisível de produtividadeprodutividade.”.”Sérgio Borba Cangiano – Diretor do SERPROSérgio Borba Cangiano – Diretor do SERPRO This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Quem usa Python ?Quem usa Python ?Quem usa Python ?Quem usa Python ? This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Quem usa Python ?Quem usa Python ?Quem usa Python ?Quem usa Python ? Utilizado Utilizado pelas pelas seguintes seguintes Empresas Empresas :: Nasa, United Space AllianceNasa, United Space Alliance Google, Yahoo , YouTubeGoogle, Yahoo , YouTube Nokia, Nortel Nokia, Nortel RedHat, GentooRedHat, Gentoo AppleApple DisneyDisney PhilipsPhilips CanonicalCanonical Los Alamos National LaboratoryLos Alamos National Laboratory ILM - Industrial Ligth & MagicILM - Industrial Ligth & Magic SERPRO, PETROBRAS, GLOBO SERPRO, PETROBRAS, GLOBO InterlegisInterlegis This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Aplicações com PythonAplicações com PythonAplicações com PythonAplicações com Python Encontramos o Python no :Encontramos o Python no : Blender, MayaBlender, Maya OpenOffice OpenOffice Zope/PloneZope/Plone BitTorrentBitTorrent MoinMoinMoinMoin MailmanMailman ChandlerChandler GimpGimp GnumericGnumeric Anaconda, Portage, YumAnaconda, Portage, Yum Trac Trac This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Código Código é é mais mais vezes vezes lido lido do do que que escrito escrito !! Clareza na linguagem é fundamental paraClareza na linguagem é fundamental para o aprendizado e para a manutenção doo aprendizado e para a manutenção do código.código. Por que usar o Python ?Por que usar o Python ?Por que usar o Python ?Por que usar o Python ? Readability counts ! (ZoP)Readability counts ! (ZoP) This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python MULTIPLATAFORMAMULTIPLATAFORMA Por que usar o Python ? Por que usar o Python ?Por que usar o Python ?Por que usar o Python ? ●● Alta portabilidade Alta portabilidade ●● Presente em 99,99% das distribuições LINUX Presente em 99,99% das distribuições LINUX ●● Alta integração com Windows COM Alta integração com Windows COM ●● Iron Python Iron Python ●● PDA´s,Celulares e tablets PDA´s,Celulares e tablets UNIXUNIX This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python ImplementaçõImplementações es :: CPython – Escrita em C CPython – Escrita em C Jython (máquina virtual Java) Jython (máquina virtual Java) IronPython .NET (Microsoft) IronPython .NET (Microsoft) PyPy – Python escrito em PyPy – Python escrito em PythonPython PyS60 – Nokia PyS60 – Nokia Por que usar o Python ?Por que usar o Python ?Por que usar o Python ?Por que usar o Python ? This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Por que Python ? Por que Python ?Por que Python ?Por que Python ? MATURIDADEMATURIDADE 1990 - Nascimento 1990 - Nascimento 1994 - Python ?? Que isso ? 1994 - Python ?? Que isso ? 1997 – Mas ninguém usa isso. 1997 – Mas ninguém usa isso. 1999 – Onde podemos encontrar programadores? 1999 – Onde podemos encontrar programadores? 2004 2004 – – Infoworld Infoworld – – 66aa linguagem linguagem 2005 2005 - - Python Python na na NokiaNokia 2007 – A linguagem que mais cresceu (TIOBE) 2007 – A linguagem que mais cresceu (TIOBE) 2008 – Google App Engine 2008 – Google App Engine 2009 – Melhor Linguagem Open Source 2009 – Melhor Linguagem Open Source (Linux New Media Award – (Linux New Media Award – CEBIT 2009)CEBIT 2009) This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Bancos de Dados : Bancos de Dados : ODBC, MySQL, Postgres, Oracle, SQLServer, sqlite,ODBC, MySQL, Postgres, Oracle, SQLServer, sqlite, gadfly, ZODB/Durus,PyDO, Metakitgadfly, ZODB/Durus, PyDO, Metakit Rede : Twisted, Rede : Twisted, asyncore, htmllib, SimpleHTTPServer, urllib, ftplib, poplib,asyncore, htmllib, SimpleHTTPServer, urllib, ftplib, poplib, smtplib, telnetlibsmtplib, telnetlib GUI : Tkinter, wxPython, PyGTk, PyQt, GUI : Tkinter, wxPython, PyGTk, PyQt, PyKDE, PythonwinPyKDE, Pythonwin Ciência : NumPY, SciPy, Ciência : NumPY, SciPy, BioPython, AstroPyBioPython, AstroPy Processamento. de Imagens : Processamento. de Imagens : PIL, PythonMagick, Gimp-pythonPIL, PythonMagick, Gimp-python XML : XML : PyXML, 4Suite, ElementTree, RDFLibPyXML, 4Suite, ElementTree, RDFLib, Cwm, Cwm Web : ZOPE, CherryPy, Webware, Quixote, PSP, mod_python, Nevow,Web : ZOPE, CherryPy, Webware, Quixote, PSP, mod_python, Nevow, Django, TurboGears, Pylons, Web2PyDjango, TurboGears, Pylons, Web2Py IDE : Emacs, vi, IDE : Emacs, vi, idle, PyDev (Eclipse), SPE, Pythonwin, Komodo,idle, PyDev (Eclipse), SPE, Pythonwin, Komodo, BlackAdder, WingIDE, PyScripter, NetBeans, Boa BlackAdder, WingIDE, PyScripter, NetBeans, Boa Constructor Constructor Por Por que que Python Python ??Por Por que que Python Python ?? Jogos : Jogos : Pygame, Pygame, Pykra, PandaPykra, Panda3D, Blend3D, Blender3D,er3D, This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python gg yg ,yg , y ,y , ,, ,, SOLUÇÃOSOLUÇÃO Fácil e claraFácil e clara Fácil integraçãoFácil integração C, Java, LuaC, Java, Lua PRODUTIVIDADEPRODUTIVIDADEPRODUTIVIDADEPRODUTIVIDADE Vasta bibliotecaVasta biblioteca disponíveldisponível MúltiplosMúltiplos ParadigmasParadigmas Porque PythonPorque PythonPorque PythonPorque Python ProblemaProblema “Simple is better than complex” (ZoP)“Simple is better than complex” (ZoP) This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Simple is better than complex (ZoP)Simple is better than complex (ZoP) Porque PythonPorque PythonPorque PythonPorque Python This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics http://usr/bin/gnome-terminal https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python TestemunhosTestemunhosTestemunhosTestemunhos Bruce EckelBruce Eckel Autor de Best Sellers:Autor de Best Sellers: “Thinking “Thinking in in C++”C++” “Thinking “Thinking in in Java”Java” Frases InspiradorasFrases Inspiradoras: : ” ” Python: Python: it it fits fits your your brain”brain” “ “ Life Life is is Better Better Without Without Braces”Braces” “ “ Life Life is is short short ! ! You You need need Python Python !! “ Python: Batteries Included”“ Python: Batteries Included” Palestra: Why I love PythonPalestra: Why I love Python “Python foi feito pra você “ “Python foi feito pra você “ “Python me ajuda a focar nos meus conceitos em vez de ficar “Python me ajuda a focar nos meus conceitos em vez de ficar brigandobrigando com a linguagem.”com a linguagem.” “Eu não “Eu não preciso digitar preciso digitar muito. Mas o muito. Mas o que eu dque eu digito é o ceigito é o certo “rto “ “Special“Special casescases aren'taren't specialspecial enoughenough toto breakbreak the rthe rules ”ules ” (ZoP)(ZoP) This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Special Special cases cases aren t aren t special special enough enough to to break break the rthe rules. ules. (ZoP)(ZoP) TestemunhosTestemunhosTestemunhosTestemunhos Eric RaymondEric Raymond Autor:Autor: A CA Catedral atedral e o e o BazarBazar mantém o Jargon File (Hacker's Dictionary)mantém o Jargon File (Hacker's Dictionary) Contribuidor do GNU Emac, Linux, FetchmailContribuidor do GNU Emac, Linux, Fetchmail Frases famosas:Frases famosas: "Havendo olhos suficientes, todos os "Havendo olhos suficientes, todos os erros são óbvios"erros são óbvios" “Entre todas as li“Entre todas as linguagens que aprendi, Python é a quenguagens que aprendi, Python é a que menos interfere entre mim e o problema. É a mais menos interfere entre mim e o problema. É a mais efetivaefetiva para traduzir pen para traduzir pensamentos em ações.”samentos em ações.” O que Eric pensa do Python:O que Eric pensa do Python: “Python amplifica seu cérebro.”“Python amplifica seu cérebro.” “If the implementation is hard to explain, it's “If the implementation is hard to explain, it's a bad idea.a bad idea. IfIf thethe implementationimplementation isis easyeasy toto explainexplain itit maymay bebe aa goodgood idea ”idea ” (ZoP)(ZoP) This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python If If the the implementation implementation is is easy easy to to explain, explain, it it may may be be a a good good idea.idea. (ZoP) (ZoP) Python foi feito para você !Python foi feito para você !Python foi feito para você !Python foi feito para você ! CompatibilidaCompatibilidade com o de com o passadopassado Interesses de GrandesInteresses de Grandes EmpresasEmpresas Compromisso com oCompromisso com o MercadoMercado Performance contra produtividadePerformance contra produtividade Curva de aprendizadoCurva de aprendizado “Simple is better than complex”“Simple is better than complex” (ZoP)(ZoP) This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Simple is better than complexSimple is better than complex (ZoP)(ZoP) Fortran Girl Fortran Girl CCoobbool l GGiirrll PPrroolloog g GGiirrll In love with PythonIn love with PythonIn love with PythonIn love with Python PythonPython GirlGirl Java GirlJava Girl “Beautiful is better than ugly ”“Beautiful is better than ugly ” (ZoP)(ZoP) This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Python PythonGirlGirl Beautiful is better than ugly.Beautiful is better than ugly. (ZoP)(ZoP) Por onde começar Por onde começar Por onde começar Por onde começar Python paPython para dera desenvolvedores senvolvedores - - Luiz ELuiz Eduardo duardo BorgesBorges Livre para DownloadLivre para Download Licença Creative CommonLicença Creative Commonss http://ark4n.wordpress.com/http://ark4n.wordpress.com/ This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Por onde começar Por onde começar Por onde começar Por onde começar www.python.org.br www.python.org.br DocumentaçãoDocumentaçãoHow to'sHow to's Cookbook Cookbook Dive into PythonDive into Python Mark PilgrimMark Pilgrim Livre pra downloadLivre pra download Aprendendo PythonAprendendo Python David Ascher e Mark LutzDavid Ascher e Mark Lutz Python Cookbook Python Cookbook Alex Martelli, AnnaAlex Martelli, Anna Ravenscroft eDavid AscherRavenscroft eDavid Ascher How to think like aHow to think like a computer scientistcomputer scientist Allen Downey, Jeff ElknerAllen Downey, Jeff Elkner and Chris Meyersand Chris Meyersii d l dd l d This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics http://www.python.org.br/ http://www.python.org.br/ https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python and Chris Meyersand Chris Meyers Livre Livre pra pra downloaddownload Site Python -Site Python - python.org python.org Site PythonBrasil -Site PythonBrasil - www.python.org.br www.python.org.br Site PythonRio -Site PythonRio - www.pythonrio.orgwww.pythonrio.org APyB -APyB - associacao.pythonbrasil.org/associacao.pythonbrasil.org/ Lista PythonRio -Lista PythonRio - br.groups.yahoo.com/group/pythonrio/ br.groups.yahoo.com/group/pythonrio/ Lista PythonBrasil -Lista PythonBrasil - br.groups.yahoo.com/group/python-brasil/ br.groups.yahoo.com/group/python-brasil/ PyconBrasil 2008 -PyconBrasil 2008 - pyconbrasil.com.br/ pyconbrasil.com.br/ PyConBrasil 2009 -PyConBrasil 2009 -associacao.pythonbrasil.org/associacao/imprensa/noticias/caxias-do-sul-2009associacao.pythonbrasil.org/associacao/imprensa/noticias/caxias-do-sul-2009 Links ImportantesLinks ImportantesLinks ImportantesLinks Importantes This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics http://python.org/ http://www.python.org.br/ http://www.pythonrio.org/ http://associacao.pythonbrasil.org/ http://br.groups.yahoo.com/group/pythonrio/ http://br.groups.yahoo.com/group/python-brasil/ http://pyconbrasil.com.br/ http://associacao.pythonbrasil.org/associacao/imprensa/noticias/caxias-do-sul-2009 http://associacao.pythonbrasil.org/associacao/imprensa/noticias/caxias-do-sul-2009 http://pyconbrasil.com.br/ http://br.groups.yahoo.com/group/python-brasil/ http://br.groups.yahoo.com/group/pythonrio/ http://associacao.pythonbrasil.org/ http://www.pythonrio.org/ http://www.python.org.br/ http://python.org/ https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Zen of PythonZen of PythonZen of PythonZen of Python O Zen do Python, por Tim PetersO Zen do Python, por Tim Peters Bonito é melhor que feio.Bonito é melhor que feio. Explícito é melhor que implícito.Explícito é melhor que implícito. Simples é melhor que complexo.Simples é melhor que complexo. Complexo é melhor que complicado.Complexo é melhor que complicado. Linear é melhor do que aninhado.Linear é melhor do que aninhado. Esparso é melhor que denso.Esparso é melhor que denso.Legibilidade conta.Legibilidade conta. Casos especiais não são especiais o bastante para quebrar as regras.Casos especiais não são especiais o bastante para quebrar as regras. Ainda que praticidade vença a pureza.Ainda que praticidade vença a pureza. Erros nunca devem passar silenciosamente.Erros nunca devem passar silenciosamente. A menos que sejam explicitamente silenciados.A menos que sejam explicitamente silenciados. Diante da ambiguidade, recuse a tentação de adivinhar.Diante da ambiguidade, recuse a tentação de adivinhar.Deveria haver um — e preferencialmente só um — modo óbvio para fazer algo.Deveria haver um — e preferencialmente só um — modo óbvio para fazer algo. Embora esse modo possa não ser óbvio a princípio a menos que você seja holandês.Embora esse modo possa não ser óbvio a princípio a menos que você seja holandês. Agora é melhor que nunca.Agora é melhor que nunca. Embora nunca frequentemente seja melhor que *já*.Embora nunca frequentemente seja melhor que *já*. Se a implementação é difícil de explicar, é uma má ideiaSe a implementação é difícil de explicar, é uma má ideia Se a implementação é fácil de explicar, pode ser uma boa ideiaSe a implementação é fácil de explicar, pode ser uma boa ideia Namespaces são umNamespaces são uma grande idéia vamos ter maa grande idéia vamos ter mais dessas!is dessas! This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python Namespaces são um Namespaces são uma grande idéia — vamos ter maa grande idéia — vamos ter mais dessas!is dessas! ImportImport Apresentacao Apresentacao try:try: if if Apresentacao.Boa: Apresentacao.Boa: printprint ““OBRIGADO !!!OBRIGADO !!!”” elseelse:: printprint “Heeerr, Obrigado mesmo assim”“Heeerr, Obrigado mesmo assim” except PalestraRuimexcept PalestraRuim:: printprint ““SAI CORRENDO !!!!SAI CORRENDO !!!!”” palestrante = “palestrante = “Giuseppe RomagnoliGiuseppe Romagnoli”” email =email = “giuseppe.romagnoli“giuseppe.romagnoli@gmail.com@gmail.com”””” ContatosContatosContatosContatos This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy The Zen of PythonThe Zen of PythonThe Zen of PythonThe Zen of Python O importante é saber que os caminhos existemO importante é saber que os caminhos existemO importante é saber que os caminhos existemO importante é saber que os caminhos existem This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics. You may change your settings at any time or accept the default settings. Privacy Policy Save Accept All Marketing Personalization Analytics https://support.scribd.com/hc/articles/210129366-Privacy-policy
Compartilhar