From 27dc2da244edaf46ec77cc1d11ccc69d17f04412 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 10 Nov 2021 18:51:56 +0800 Subject: [PATCH] save project --- hero.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 hero.py diff --git a/hero.py b/hero.py new file mode 100644 index 0000000..ea951fd --- /dev/null +++ b/hero.py @@ -0,0 +1,9 @@ +class Hero: + def __init__(self): + self.level = 1 + self.hp = 300 + self.attack = 20 + +yase = Hero() +print("yase的血量为:",yase.hp) +print("yase的攻击力为:",yase.attack) -- libgit2 0.25.0