内容摘要: 貌美如花是你,赚钱养家亦是你
出得厅堂是你,入得厨房亦是你
嫌我胖的是你,让我多吃点的亦是你
是你
把全部的爱倾注于我
让我拥有爱的铠甲
我的母亲…
![图片[3]-软件学院爱心节系列③暨感恩系列活动⑥|惟愿时光不老,你不老 - 反职业打假人网-反职业打假人网](/upload/38/202005/23/202005231222290390.jpg)
![图片[4]-软件学院爱心节系列③暨感恩系列活动⑥|惟愿时光不老,你不老 - 反职业打假人网-反职业打假人网](/upload/38/202005/23/202005231222404766.jpg)
玫瑰花:
import turtle
# 设置初始位置
turtle.penup()
turtle.left(90)
turtle.fd(200)
turtle.pendown()
turtle.right(90)
# 花蕊
turtle.fillcolor(“red”)
turtle.begin_fill()
turtle.circle(10,180)
turtle.circle(25,110)
turtle.left(50)
turtle.circle(60,45)
turtle.circle(20,170)
turtle.right(24)
turtle.fd(30)
turtle.left(10)
turtle.circle(30,110)
turtle.fd(20)
turtle.left(40)
turtle.circle(90,70)
turtle.circle(30,150)
turtle.right(30)
turtle.fd(15)
turtle.circle(80,90)
turtle.left(15)
turtle.fd(45)
turtle.right(165)
turtle.fd(20)
turtle.left(155)
turtle.circle(150,80)
turtle.left(50)
turtle.circle(150,90)
turtle.end_fill()
# 花瓣1
turtle.left(150)
turtle.circle(-90,70)
turtle.left(20)
turtle.circle(75,105)
turtle.setheading(60)
turtle.circle(80,98)
turtle.circle(-90,40)
# 花瓣2
turtle.left(180)
turtle.circle(90,40)
turtle.circle(-80,98)
turtle.setheading(-83)
# 叶子1
turtle.fd(30)
turtle.left(90)
turtle.fd(25)
turtle.left(45)
turtle.fillcolor(“green”)
turtle.begin_fill()
turtle.circle(-80,90)
turtle.right(90)
turtle.circle(-80,90)
turtle.end_fill()
turtle.right(135)
turtle.fd(60)
turtle.left(180)
turtle.fd(85)
turtle.left(90)
turtle.fd(80)
# 叶子2
turtle.right(90)
turtle.right(45)
turtle.fillcolor(“green”)
turtle.begin_fill()
turtle.circle(80,90)
turtle.left(90)
turtle.circle(80,90)
turtle.end_fill()
turtle.left(135)
turtle.fd(60)
turtle.left(180)
turtle.fd(60)
turtle.right(90)
turtle.circle(200,60)
爱心雨:
import os
import time
import sys
from random import randint
childAge = int(input(“请输入您的孩子的年龄:”))
motherAge = int(input(“请输入您的的年龄:”))
start = input(“Start?(Y/N)”)
year = 2020
if start == “Y” or “y”:
if childAge > 100 or motherAge >150 or childAge >= motherAge:
print(“请不要胡闹哦~”)
sys.exit()
print(“在您”, motherAge-childAge, “岁时有了我,”)
print(“感谢您”, childAge, “年为我的付出,”)
print(“祝妈妈”, year, “年母亲节快乐!”)
# 玫瑰花:
import os
import time
from random import randint
for i in range(1, 5): # 打印抬头
print(”)
heartStars = [2, 4, 8, 10, 14, 20, 26, 28, 40, 44, 52, 60, 64, 76] # *的位置
heartBreakLines = [13, 27, 41, 55, 69, 77] # 空格的位置
flowerBreakLines = [7, 15, 23, 31, 39, 46] # 玫瑰的空列位置
def addSpaces(a): # 添加空列
count = a
while count > 0:
print(‘ ‘, end=”)
count -= 1
def newLineWithSleep(): # 添加空行
time.sleep(0.3)
print(‘\n’, end=”)
play = 0
while play == 0:
Left_Spaces = randint(8, 80)
addSpaces(Left_Spaces)
for i in range(0, 78): # 比心的形状
if i in heartBreakLines:
newLineWithSleep()
addSpaces(Left_Spaces)
elif i in heartStars:
print(‘*’, end=”)
elif i in (32, 36):
print(‘M’, end=”)
elif i == 34:
print(‘O’, end=”)
else:
print(‘ ‘, end=”)
newLineWithSleep()
addSpaces(randint(8, 80))
print(“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)
for i in range(0, 47): # 向母亲献花
if i in flowerBreakLines:
newLineWithSleep()
addSpaces(Left_Spaces)
elif i in (2, 8, 12, 18):
print(‘{‘, end=”)
elif i in (3, 9, 13, 19):
print(‘_’, end=”)
elif i in (4, 10, 14, 20):
print(‘}’, end=”)
elif i in (27, 35, 43):
print(‘|’, end=”)
elif i in (34, 44):
print(‘~’, end=”)
elif i == 11:
print(‘o’, end=”)
else:
print(‘ ‘, end=”)
print(‘\n’, end=”)
else:
print(“请输入Y/y开始哦~”)
![图片[9]-软件学院爱心节系列③暨感恩系列活动⑥|惟愿时光不老,你不老 - 反职业打假人网-反职业打假人网](/upload/38/202005/23/202005231228301067.png)
需要打假资料请添加微信:Li0dajia
职业打假教程投诉假货举报合法索赔纠纷维权学习暴利偏门赚钱副业
