-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbirthday.py
49 lines (46 loc) · 1.94 KB
/
birthday.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import os
import sys
import time
def drawCake():
cake = """ ~ ~
* * * *
* *
~ * * ~ *
* ~ * * ~
) ( ) *
* ~ ) (_) ( (_) ) (_) ( *
* (_) # ) (_) ) # ( (_) ( # (_) *
_#.-#(_)-#-(_)#(_)-#-(_)#-.#_
* .' # # # # # # # # # # # `. ~ *
: # # # # # # # # :
~ :. # # # # .: *
* | `-.__ __.-' | *
| `````'''''''''''````` | *
* | | || |~)|~) / |
~ * | | *
~ * | | *
| |~)||~)~|~| ||~\|\ \ / | *
* _.-| |~)||~\ | |~|| /|~\ | |-._
.' '. ~ ~ .' `. *
jgs : `-.__ __.-' :
`. `````'''''''''''````` .'
`-.._ _..-'
`````''''-----------''''`````"""
for line in cake.split('\n'):
print(line)
time.sleep(0.1)
def drawTaeBo(interval):
for i in range(10):
print('@==(^ 0^)@ @(^0 ^)==@')
time.sleep(interval)
print('@=(^0^)=@ @=(^ 0 ^)=@')
time.sleep(interval)
print('@(^0 ^)==@ @==(^ 0^)@')
time.sleep(interval)
print('@=(^0^)=@ @=(^ 0 ^)=@')
time.sleep(interval)
drawCake()
drawTaeBo(0.3)
print('========== H A P P Y B I R T H D A Y ==========')
drawTaeBo(0.1)
print('Anyway, happy birthday :) --myself\n')