Commit 24075cfb by BellCodeEditor

save project

parent f9b6bca9
Showing with 45 additions and 10 deletions
weight=float(input("体重是:"))
height=float(input("身高是:"))
BMI=weight/(height*height)
if BMI>28:
print("肥胖")
elif BMI>=24.0:
print("过重")
elif BMI>=18.5 :
print("正常")
elif BMI>=0 :
print("正常")
\ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
len=screen.textinput("提示","请输入爱心大小")
lovesize=int(len)
screen.bgcolor("blue")
pen.penup()
pen.goto(100,-100)
pen.pendown()
pen.write("鸡你太美",font=("times",30,"normal"))
pen.pensize(9)
pen.pencolor("red")
pen.penup()
pen.goto(0,0)
pen.pendown()
pen.left(45)
pen.forward(lovesize*2)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(lovesize*2)
turtle.done()
# 悟空想画个六芒星魔法阵,主要的代码已写出,但这有bug,请你帮忙调试下~
import turtle
pen= turtle.Pen()
size=textinput("提示","你想要多大的魔法阵呀?")
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
turtle.done()
a=[]
i=1
while i<101:
a.append(i)
print(a)
\ No newline at end of file
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