Commit 6333dde8 by BellCodeEditor

save project

parent bbbc1c65
weight=float(input("")) weight=float(input("请输入身高(米):"))
height=float(input("")) height=float(input("请输入体重(千克):"))
health=weight/(height*height)
while True: while True:
if health>18 and health<24:
print("您的身体很健康,请继续保持!")
else:
print("您的身体有一点问题,请及时调整!")
import turtle
def drawcircle(angle,length,pen,color):
for i in range(int(360/angle)):
pen.forward(length)
pen.right(angle)
pen.color(color)
pen=turtle.Pen()
drawcircle(1,1,pen,"blue")
turtle.done()
\ No newline at end of file
import turtle import turtle
colors=["orange","yellow","green","blue"] colors=["orange","yellow","green","blue","purple","pink","brown","red"]
def draw(pen,angle): def draw(pen,angle):
for i in range(1,300): for i in range(1,320):
pen.color(colors[i%4]) pen.color(colors[i%8])
pen.forward(i) pen.forward(i)
pen.right(angle) pen.right(angle)
pen=turtle.Pen() pen=turtle.Pen()
......
def multiplicationtable(j,i):
print(j,"*",i,"=",(j*i))
multiplicationtable(3,3)
\ 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