Professional Documents
Culture Documents
Test 3
Test 3
import time
import pyfiglet
width = os.get_terminal_size().columns
height = os.get_terminal_size().lines
ruybang
word = '11A3'
curr_word = ''
def asc_art(st):
print(pyfiglet.figlet_format(st,font='slant',justify = "center"))
time.sleep(0.3)
space = width // 2
upw = width // 2
cao = 0
gach1 = ""
cach1 = ""
ent = 21
doc = 0
file = open("heart.txt","r")
row = ""
for i in range(0,width//3):
os.system("cls")
gach1 += "---"
space -= 3
cach1 = space*" "
asc_art(curr_word)
if (i % 3) == 0:
if i <= 60:
ent -= 1
doc += 1
for x in range(0,ent):
print()
print(upw*" "+"^")
print()
for y in range(0,doc):
print(upw*" "+"|")
print(cach1,gach1)
for y in range(0,doc):
print(upw*" "+"|")
#file = open("heart.txt","r")
#row = ""
#for line in file:
# os.system("cls")
# print(asc_art(curr_word))
# row += " "+line
# print(row)