Created
May 12, 2016 11:48
-
-
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.
This file contains hidden or 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
#!/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