Commit f1b71f70 by BellCodeEditor

save project

parent 2c766a38
Showing with 8 additions and 11 deletions
with open(r'c:\Users\w\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')as sales_list: class Hero:
a=sales_list.readlines() def __init__(self):
#print(a) self.leve1=30000000
for i in a: self.hp=20000
m=i.split() self.attack=1000000000
sum=0 yase=Hero()
for sales in m[1:]: print(yase.hp)
sum=sum+int(sales) \ No newline at end of file
t=m[0]+str(sum)
print(t)
\ 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