Commit 09422ba4 by BellCodeEditor

auto save

parent 2437589b
Showing with 14 additions and 0 deletions
...@@ -13,3 +13,17 @@ guanyu=hero("关羽",800,100) ...@@ -13,3 +13,17 @@ guanyu=hero("关羽",800,100)
guanyu.upgrade() guanyu.upgrade()
print(machao.hp) print(machao.hp)
print(guanyu.attack) print(guanyu.attack)
class Dog:
def __init__(self,color):
self.leg=4
self.eye=2
self.ear=2
self.color=color
wangcai=Dog("black")
xiaohua=Dog("orange")
print(xiaohua.color)
print(wangcai.color)
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