Todas as minhas fontes e recursos que eu já usei ou uso na minha trajetória, programando e aprendendo mais sobre 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
#Libs para o uso do aplicativo | |
from threading import Thread | |
from time import strftime, localtime, sleep | |
from tkinter import * | |
# Cria a função que será usada para atualizar o label l | |
def atualizaHora(): | |
while True: | |
l.configure(text=strftime("%H:%M:%S", localtime())) | |
sleep(1) |
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
from os import system, name | |
from time import sleep | |
def cls(tEspera=0.0): | |
""" | |
Esta é uma função que limpa o terminal do python/OS | |
Utilizando a função OS do sistema ela recebe a interface de acesso ao terminal \n | |
Podeaguardar antes de limpar a tela para exibição de um resultado temporario em segundos | |
exemplos de uso: cls(5), cls(0.4), cls() |
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
DOC, DOCX, HTML, HTM, RTF, TXT, JPEG, GIF, PNG, BMP, PDF, EPUB |
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
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin |
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
""" | |
Aplicativo de Listas do bremado | |
""" | |
lista_tarefas = [] | |
def imprime_lista(): | |
""" | |
Função que imprime a lista com seu respectivo indice | |
""" | |
indice = 0 |
- Considere que você quer calcular o preço das suas aulas de musculação e precisa criar um programa para isso, e vocẽ tem as seguintes condições:
- A cada 6 meses de fidelidade do contrato você dá um desconto de 2%, que pode acumular até 15%;
- SE o aluno quiser mais de 3 aulas por semana, o preço das aulas que passem do limite tem um acrescimo de 0,5%;
- SE o periodo de preferencial for a noite existe um acrescimo de 5% das aulas, SE for de manhã um desconto de 2%.
Pense em cada variavel que você precisará para elaborar esse codigo, pense nas estruturas condicionais para decidir os descontos e acrescimos.
- Crie uma calculadora que receba um valor a operação e outro valor, para que possa ser possivel qual operação você deseja fazer. Como por exemplo:
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<style> |
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
cabecalio = """ | |
Sistema Bancario | |
1. Extrato | |
2. Deposito | |
3. Saque | |
4. Saida | |
""" | |
class conta: |