Commit 9d0dea1a by BellCodeEditor

save project

parent 70850cf8
Showing with 11 additions and 0 deletions
class H:
def __init__(self,lv,n,hp):
self.lv=1
self.n=n
self.hp=hp
ys=H("ys",300,20)
hy=H("ho",240,23)
print("ya血量:",ys.hp)
print("hy血量:",hy.hp)
\ 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