This file contains 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
import pyqrcode | |
import png | |
from pyqrcode import QRCode | |
qrstring = "https://www.youtube.com/" # Lugar do link desejado | |
url = pyqrcode.create(qrstring) | |
url.png('C:\local\qr.png', scale=8) # escolher o local do arquivo png com o Qr code |
This file contains 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
CPF = [5, 2, 9, 9, 8, 2, 2, 4, 7, 2, 5] | |
#Número 1 CPF | |
cont = cont2 = soma = soma2 = 0 | |
*ult, n1, n2 = CPF | |
ulti_num2 = ([n1, n2]) | |
mult = 10 | |
for n1 in range(9): | |
soma += CPF[cont] * mult | |
cont += 1 | |
mult -= 1 |
This file contains 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
# Tradutor | |
frase = input('Digite em inglês: ') | |
from translate import Translator | |
traduzir = Translator(from_lang="English", to_lang="Portuguese") | |
traducao = traduzir.translate(frase) | |
print(traducao) |