HTTP/2 302
server: nginx
date: Sat, 30 Aug 2025 00:30:38 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20180611001132
location: https://web.archive.org/web/20180611001132/https://github.com/mdsmus/python-training
server-timing: captures_list;dur=0.467652, exclusion.robots;dur=0.015538, exclusion.robots.policy;dur=0.006821, esindex;dur=0.010842, cdx.remote;dur=7.601464, LoadShardBlock;dur=300.732359, PetaboxLoader3.datanode;dur=156.600356, PetaboxLoader3.resolve;dur=104.609046
x-app-server: wwwb-app224
x-ts: 302
x-tr: 335
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app224; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 30 Aug 2025 00:30:38 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-date: Mon, 11 Jun 2018 00:11:33 GMT
x-archive-orig-transfer-encoding: chunked
x-archive-orig-status: 200 OK
x-archive-orig-cache-control: no-cache
x-archive-orig-vary: X-PJAX
x-archive-orig-set-cookie: logged_in=no; domain=.github.com; path=/; expires=Fri, 11 Jun 2038 00:11:33 -0000; secure; HttpOnly
x-archive-orig-set-cookie: _gh_sess=SUJpSkFoVVRWdEppMzAyQmNoalpaRHJ5REwyWXdUcEFmSkJQZXo2enJXOXNsMGR3Q25wZlhOcXJYcmNwbHdzMjlBWE9sMkc1REtYNUhkU0d3V2VQVWJ2aU9FK1lzL215c2xMODhoVkF3Y1lLRllENG9OeVVWbHNPQTFDR0xGMGlnYmVoR3hQK1gyUVFIUkIveU5QTzc1MFc1aUJuQlJIb1VZN1VPckNHV1JRcCtRWXBURWZqSEtJL3lzdC8zSFhNcHF5V0xaSzQ4MGdmVlJvbkp6bENzdzdJV3lmK2taaHZHMDkyQXJranMzTnJCQnlFQUpEZzVBY0kzOXZFY0kwbGxvZC9hc2hkUlJXZGRaUDlESU5rbFJSSWwzVWVveDNOakQ1ZTBKc280blN0U0w3ajVSRVgzRUlMQndpLzhRWEVOSEJ2VGpxYXlEb0ZLZkg2ZU10d2VhcXJYdlZRSUQwMnY1aUpBUUs1V1pRRTYxdTZSbzlCMStxdm9IWVFEa1pVWVIvWEMySXFNZXc2ZjNWZGZIbXNIZ2ZlLzFtQ3JHN1Y3bnFLbzNoN1pWZz0tLW5LWWlCUlN0SlJrVm11aTNtZ3FtYUE9PQ%3D%3D--03ceb8d08a439c2141d90191a50f9fba86d1c87c; path=/; secure; HttpOnly
x-archive-orig-x-request-id: 58234fcb-a9b6-4c85-8114-acbb5ca8d9aa
x-archive-orig-x-runtime: 0.178970
x-archive-orig-strict-transport-security: max-age=31536000; includeSubdomains; preload
x-archive-orig-x-frame-options: deny
x-archive-orig-x-content-type-options: nosniff
x-archive-orig-x-xss-protection: 1; mode=block
x-archive-orig-expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
x-archive-orig-content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src assets-cdn.github.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-cdn.github.com; style-src 'unsafe-inline' assets-cdn.github.com
x-archive-orig-x-runtime-rack: 0.185324
x-archive-orig-x-github-request-id: AD72:33DA:436D069:7FF90E0:5B1DBE34
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 11 Jun 2018 00:11:32 GMT
link:
; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 11 Jun 2018 00:11:32 GMT", ; rel="memento"; datetime="Mon, 11 Jun 2018 00:11:32 GMT", ; rel="next memento"; datetime="Wed, 18 Nov 2020 05:05:51 GMT", ; rel="last memento"; datetime="Wed, 18 Nov 2020 05:05:51 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: archiveteam_github_20180703165852/archiveteam_github_20180703165852.megawarc.warc.gz
server-timing: captures_list;dur=1.309376, exclusion.robots;dur=0.022003, exclusion.robots.policy;dur=0.008740, esindex;dur=0.014674, cdx.remote;dur=6.521834, LoadShardBlock;dur=100.129498, PetaboxLoader3.datanode;dur=123.568205, load_resource;dur=131.078217, PetaboxLoader3.resolve;dur=46.723980
x-app-server: wwwb-app224
x-ts: 200
x-tr: 349
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
GitHub - mdsmus/python-training: Treinamento de python no genos
Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Sign up
Python
Clone or download

Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
README.md
Programando em python
Objetivos
Introdução rápida a python para quem já conhece alguma linguagem de
programação. Poder ler e contribuir com o código de
xenophilus.
Março 17
vantagens de python
-
curva de aprendizado pequena
-
onipresente
-
fácil de ler (especialmente 6 meses depois)
-
multi-paradigma
-
orientada a objetos
-
baterias incluídas (mostrar bibliotecas)
-
portável
-
flexível (não tanto como lisp)
-
excelente documentação
-
excelente comunidade
-
ditador benevolente
-
coisas padrão como pep8 (pep8.py rocks!)
-
cada versão está melhor (3.1 melhor que 1.5)
-
mais sintaxe que lisp, menos prolixo:
lisp => (subseq "foo" 0 3)
python => "foo"[:3]
"desvantagens" de python (segundo kroger ;-)
-
pode ser lento (mas pode re-escrever em C)
-
ditador benevolente
-
linguagem em fluxo (e.g. 1.5 diff de 3.1)
-
não tem macros como em lisp (nem loop, format, etc)
-
não tem slime (mas tem IDEs: eclipse, komodo, etc)
-
mais sintaxe que lisp (funções em lisp):
lisp => (member item lista)
python => item in lista
introdução a python
- o interpretador
- programa mínimo
- o básico da sintaxe (identação, espaços, pep8, etc)
- achando coisas na documentação
- help() e
dir()
- criando scripts (shebang)
- números, strings, listas, dicionários
- tipos (tipagem forte, compare com perl)
- funções I (básico)
- controle de fluxo: if, while
- codigo em bibliotecas (import)
- for, compreensão de listas, map, lambda
- funções II (argumentos, funções aninhadas, escopo)
- exemplo1.py
Mar 31
orientação a objetos
Abr 14
Abr 21
Referências
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.