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
\begin{table}[ht] | |
\centering | |
\caption{Médias dos resultados das rodadas de simulação.} | |
\label{tab:tabela_simulacao} | |
\begin{tabular}{ccccccccc} | |
\hline | |
\multirow{2}{*}{Cenário} & \multirow{2}{*}{Algoritmo} & \multirow{2}{*}{\shortstack{Posição\\Inicial}} & \multirow{2}{*}{\shortstack{Posição\\Final}} & \multirow{2}{*}{\shortstack{Tempo\\Inicial}} & \multirow{2}{*}{\shortstack{Posição\\Final}} & \multirow{2}{*}{\shortstack{Duração\\Média}} & \multirow{2}{*}{Mediana} \\ | |
& & & & & & & & \\ | |
\hline | |
1 & A* & \shortstack{-7,-7} & 5,6 & 2,191 & 51,290 & 49,099 & 44,400 \\ |
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
#Feito por Arthur Eduardo Good | |
#IPOO 2020/01 | |
class ContaCorrente: | |
def __init__(self): | |
self.__conta = "22b40ac37" | |
self.__nome = None | |
self.__saldo = 0.0 | |
self.__valor = 0.0 |
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
import string, random, time, getpass, pyperclip | |
# As duas listas, cada uma é um dos tipos de senha. | |
A = (string.ascii_letters + string.digits) | |
B = (string.ascii_letters + string.punctuation + string.digits) | |
# Execução. | |
senha = '' | |
print(f"Olá, {getpass.getuser()}.") | |
print("SENHA TIPO A: Letras e números.\nSENHA TIPO B: Letras, números e caracteres especiais.\n") |
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
import turtle | |
print("\n1 - Lento\n2 ou 3 - Recomendado\n10 - Impossível") | |
speed = int(input("\nInsira a velocidade desejada: ")) | |
wn = turtle.Screen() | |
wn.title("Pong") | |
wn.bgcolor("black") | |
wn.setup(width=800, height=600) | |
wn.tracer(0) |
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
import logging, random, telegram, time, telebot, os | |
from telegram import ReplyKeyboardMarkup, ReplyKeyboardRemove | |
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackQueryHandler, ConversationHandler | |
bot = telegram.Bot(token='TOKEN') | |
#lists | |
pokemon_list = open("pokemon.txt", encoding="utf8") | |
pokemons = [] |
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
import telegram, logging, random | |
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
bot = telegram.Bot(token="TOKEN") | |
# Enable logging | |
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) | |
logger = logging.getLogger(__name__) | |