Commit 4bed9fdf by BellCodeEditor

auto save

parent f5a0ad00
Showing with 5 additions and 7 deletions
class Hero:
def __init__(self):
self.leve1=1
self.hp=300
self.attack=20
yase = Hero()
with open(r'c:\Users\LX\Desktop\test.txt','r',encoding='utf-8') as file:
a=file.readlines()
# print(a)
for i in a:
print(yase.hp)
print(i)
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