Commit ab52b2eb by BellCodeEditor

save project

parent f72571fd
Showing with 2 additions and 1 deletions
...@@ -4,7 +4,7 @@ class hero: ...@@ -4,7 +4,7 @@ class hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=hero('奥运预言'300,20) yase=hero('奥运预言',300,20)
houti=('后裔',100,200) houti=('后裔',100,200)
print('奥运预言hp',yase.hp) print('奥运预言hp',yase.hp)
print('后裔hp',houyi.hp) print('后裔hp',houyi.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