Commit 59c4a43c by BellCodeEditor

auto save

parent 6482d436
Showing with 43 additions and 1 deletions
# def caimin() :
# list = []
# while True :
# a = input("你想点什么菜?")
# if a == "q":
# break
# else:
# list.append(a)
# print(list)
# caimin()
try:
age = int(input("你就今年几岁了?"))
except:
print("要输入整数呀")
else:
if age<18 :
print("不可以喝酒哦")
print("程序结束…………")
\ No newline at end of file
import turtle
import turtle
a=turtle.Pen()
c=turtle.Screen ()
c.bgcolor("light yellow")
a.pencolor("pink")
a.fillcolor("pink")
a.begin_fill()
a.left(45)
a.forward(100)
a.circle(50,180)
a.right(90)
a.circle(50,180)
a.forward(100)
a.end_fill()
a.hideturtle()
b=turtle.Pen()
b.pencolor("light blue")
b.penup()
b.goto(100,-80)
b.write("小心心送给你",font=("Times",20,"normal"))
b.hideturtle()
turtle.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment