Commit 1f3fccb5 by BellCodeEditor

auto save

parent 53278a7c
Showing with 12 additions and 11 deletions
"""
请使用turtle模块画出五角星
"""
import turtle
pen=turtle.Pen()
for i in range(5):
pen.forward(100)
pen.right(144)
pen.hideturtle()
turtle.done()
\ No newline at end of file
input("请输入感冒指数")
if int(input)==[0,1,2,3,4,5,6]:
print("少发")
elif int(input)==[7,8,9,10,11,12,13,14,15,16,17,18,19]:
print("较易发")
elif int(input)==[20,21,22,23,24,25,26,27,28,29,30]:
print("易发")
elif int(input)==[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]:
print("极易发")
else:
print("指数值不正确")
\ 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