Today is mother's Day , The nature of being a child should send a holiday blessing to the mother , If I'm by my mother's side , You can say a few blessings and give some small gifts directly , If you're not with your mother , Could you give me a call .

Yes, of course , As a programmer , Except for the blessings above , We can also write a small program for mothers to send special holiday wishes , In this article, we use Python
To make a special holiday blessing for your mother .

The code implementation is as follows :
colorama.init(convert=True) RED = colorama.Fore.RED + colorama.Style.BRIGHT
CYAN= colorama.Fore.CYAN + colorama.Style.BRIGHT GREEN = colorama.Fore.GREEN +
colorama.Style.BRIGHT YELLOW = colorama.Fore.YELLOW + colorama.Style.BRIGHT
MAGENTA= colorama.Fore.MAGENTA + colorama.Style.BRIGHT # Print header for i in range(1,
35): print('') # \* Location of heartStars = \[2, 4, 8, 10, 14, 20, 26, 28, 40, 44, 52,
60, 64, 76\] # Space position heartBreakLines = \[13, 27, 41, 55, 69, 77\] # Empty column position of rose
flowerBreakLines= \[7, 15, 23, 31, 39, 46\] # Add empty column def addSpaces(a): count = a
while count > 0: print(' ', end='') count -= 1 # Add empty row def newLineWithSleep():
time.sleep(0.3) print('\\n', end='') play = 0 while play == 0: Left\_Spaces =
randint(8, 80) addSpaces(Left\_Spaces) # Painting heart for i in range(0, 78): if i in
heartBreakLines: newLineWithSleep() addSpaces(Left\_Spaces) elif i in heartStars
: print(RED + '\*', end='') elif i in (32, 36): print(GREEN + 'M', end='') elif
i== 34: print(GREEN + 'O', end='') else: print(' ', end='') newLineWithSleep()
addSpaces(randint(8, 80)) print(CYAN + "H a p p y M o t h e r ' s D a y !", end=
'') newLineWithSleep() newLineWithSleep() Left\_Spaces = randint(8, 80)
addSpaces(Left\_Spaces) # painted decoration for i in range(0, 47): if i in flowerBreakLines:
newLineWithSleep() addSpaces(Left\_Spaces) elif i in (2, 8, 12, 18): print(
MAGENTA+ '{', end='') elif i in (3, 9, 13, 19): print(MAGENTA + '\_', end='')
elif i in (4, 10, 14, 20): print(MAGENTA + '}', end='') elif i in (27, 35, 43):
print(GREEN + '|', end='') elif i in (34, 44): print(GREEN + '~', end='') elif i
== 11: print(YELLOW + 'o', end='') else: print(' ', end='') print('\\n', end='')
Take a look at the effect :

Technology
©2019-2020 Toolsou All rights reserved,
C Language programming to find a student's grade java Realize the function of grabbing red packets Random forest R Language implementation QCustomPlot series (5)- Real time dynamic curve Software testing BUG describe use C++ I want to talk to you “ Prototype mode ” ( copy / copy constructor )JS How to operate China's longest high speed rail officially opened ! The fastest way to finish the race 30.5 hour Zimi apologizes :33W Gan charger delayed due to force majeure 2021 year 2 Chinese programming language ranking