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
__author__ = 'kaue' | |
import turtle,time | |
colors = ['red', 'purple', 'blue', 'green', 'yellow', 'orange', 'pink'] | |
t1=turtle.Pen() | |
turtle.bgcolor('black') | |
t1.speed(0) | |
for x in range(1000): | |
t1.pencolor(colors[x%7]) | |
if x%2==0: | |
t1.forward(x) |
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
__author__ = 'Kaue Maia' | |
import turtle | |
def coracao(): | |
t1= turtle.Pen() | |
t1.color('red') | |
turtle.bgcolor('black') | |
t1.speed(0) | |
for ang in range(360): | |
t1.left(90-ang) |
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
--DDL - Criando tabelas | |
CREATE TABLE IF NOT EXISTS cliente ( | |
id_cliente SERIAL, | |
nome VARCHAR(50) NOT NULL, | |
cpf CHAR(11) NOT NULL UNIQUE, | |
ativo BOOLEAN DEFAULT TRUE, | |
data_criacao TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
PRIMARY KEY(id_cliente) | |
); | |
CREATE TABLE IF NOT EXISTS conta ( |