Skip to content

Instantly share code, notes, and snippets.

@KaueMaia
KaueMaia / playTurtle.py
Created June 7, 2015 19:18
Brincando com Turtle do Python...
__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)
__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)
--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 (