Commit 93b7bb21 by BellCodeEditor

auto save

parent 4c119649
Showing with 14 additions and 7 deletions
class Hero:
def _init_(self):
self.level = 1
self.hp = 300
self.attack = 10
zuoyimo=Hero()
\ No newline at end of file
b=a.readlines()a:
for i in a:
d=i.split()
e=0
for i in d[1:]:
e=e+int(i)
f+d[0]str(e)+"\n"
f.apppend(f)
with open(r"C:\Users\悟空20\Desktop\新建文件夹1 (2)\新建文本文档.txt","a",encoding="utf-8") as a:
a.writelines(c)
\ 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