Skip to content

Instantly share code, notes, and snippets.

@gustavomdsantos
Created May 12, 2016 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavomdsantos/59144fa79d5933768b013c486f8306d5 to your computer and use it in GitHub Desktop.
Save gustavomdsantos/59144fa79d5933768b013c486f8306d5 to your computer and use it in GitHub Desktop.
Um código para Python 3+ de exemplo com codificação UTF-8 e mensagem que detecta versão do Python.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
if sys.version_info[0] < 3:
print ("Está usando Python 2 né? Atualiza logo!")
else:
print ("Está usando Python 3, bom...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment