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:
a=sales_list.readlines()
#print(a)
for i in a:
m=i.split()
sum=0
for sales in m[1:]:
sum=sum+int(sales)
t=m[0]+str(sum)
print(t)
\ No newline at end of file
class Hero:
def __init__(self):
self.leve1=30000000
self.hp=20000
self.attack=1000000000
yase=Hero()
print(yase.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