Commit 36a85871 by BellCodeEditor

auto save

parent 5587c852
Showing with 27 additions and 12 deletions
class Hero: a=int(input("0~61"))
def __init__(self,name,hp,attack): if 0<=a<=6:
self.level=1000000000000000000000000000000 print("少发")
self.name= name else:
self.hp= hp if 7<=a<=19:
self.attack=attack print("0发")
else:
yase = Hero("垭瑟",3000000000000000000000000000000,2000000000000000000000000000000) if 20<=a<=30:
houyi = Hero("后羿",2400000000000000000000000000000,2300000000000000000000000000000) print("发")
print("垭瑟的血量值为:",yase.hp) else:
print("后羿的血量值为:",houyi.attack) print("1发")
\ No newline at end of file \ No newline at end of file
import turtle
turtle.pen()
turtle.color("red")
turtle.pensize(10)
turtle.goto(0,0)
turtle.left(90)
turtle.forward(100)
turtle.forward(-50)
turtle.left(90)
turtle.forward(50)
turtle.forward(-100)
turtle.left(90)
turtle.circle(-50)
turtle.done()
\ 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