Commit 36a85871 by BellCodeEditor

auto save

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