Commit 5817f1f5 by BellCodeEditor

save project

parent 195b455e
Showing with 8 additions and 6 deletions
with open(r"C:\Users\Administrator\Downloads\12.zip","r",encoding='utf-8') class Hero:
for i in file: def __init__(self):
if "小强:10本" in i: self.level=1
print("在文件里") self.hp=300
self.attack=20
\ No newline at end of file yase=Hero()
print(yase.level)
\ 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