Commit 32ae3b1c by BellCodeEditor

save project

parent d9a35906
Showing with 8 additions and 6 deletions
class Hero:
def __init__ (self,name,hp,attack,1a,2a,)
self.name = 史诗
self.name = name
self.level = 1
self.hp = 300
self.attack = 20
self.1a = 弑血
self.2a = 意免
\ No newline at end of file
self.hp = hp
self.attack = attack
1 = Hero ("三木"13000000)
2 = Hero('漆世强",3000000000000,9999999999999999999999)
print("三木的血拦为",a.hp)
print("漆世强",b.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