Commit a358885d by BellCodeEditor

save project

parent 90796b75
Showing with 14 additions and 5 deletions
with open(r'c:\Users\周子轩\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as file: #with open(r'c:\Users\周子轩\Documents\lesson13-1\sales.txt','r',encoding='utf-8') as file:
w=file.readlines() # w=file.readlines()
#print(w) #print(w)
for i in w: #for i in w:
print(i) # print(i)
\ No newline at end of file #将错误的地方改正
class Hero:
def __init__(self):
self.level = 9999999999999999999
self.hp = 9999999999999999999999999999999999999999999999999999999999
self.attack = 9999999999999999999
yase=Hero()
print('yase的血条'+str(yase.hp))
print('yase的攻击力'+str(yase.attack))
\ 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