Commit fc26e237 by BellCodeEditor

save project

parent 38f07abd
Showing with 10 additions and 12 deletions
import turtle
pen1=turtle.pen
pen1=(pen1.pensize(5))
pen1.pencolor("green")
pen1.forward(100)
pen.circle(50,180)
pen1.right(90)
pen.circle(50,180)
pen.forward(100)
pen.hideturtle()
turtle.done()
\ No newline at end of file
class Hero:
def__init__(self):
self.level = 1
self.hp=300
self.attack=20
yase = Hero()
print("yase的血量值为:",yase.hp)
print("yase的攻击力为:",yase.attack)
\ 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