python -m SimpleHTTPServer # cria servidor http na porta 8000
python -m smtpd -n -c DebuggingServer localhost:1025 # cria servidor smtp na porta 1025
a, b = b, a # troca os valores de a e b sem precisar de variavel auxiliar
x = "Alguma coisa" y = x[::-1] # Inverte a string
import antigravity # só no python 3
e por ai vai ...
Share this content:
sempre uso o SimpleHTTPServer… preguiça de configurar o samba hehehe
No python 3 é ainda mais simples :
python -m http.server 🙂