Commit 4441f876 by BellCodeEditor

save project

parent 7bce646f
Showing with 8 additions and 13 deletions
filtre1=(r'C:\Users\Administrator.SC2206-2023UCRO\Desktop','w',encoding='utf-8') class Hero:
filter1.wrirt('小兰:12本') def __init__(self):
filter1.close() self.level=1
with open(r'C:\Users\Administrator.SC2206-2023UCRO\Desktop','w',encoding='utf-8') as file: self.hp=200
file.write("小强:13本") self.attack=20
with open(r'C:\Users\Administrator.SC2206-2023UCRO\Desktop','w',encoding='utf-8') as file: yase=Hero()
for data in file: print(ya.hp)
if "小强:13" in data: \ No newline at end of file
print("数据在")
new_data +=data
with open(r'C:\Users\Administrator.SC2206-2023UCRO\Desktop','w',encoding='utf-8') as filel:
filel.write(new_data)
\ 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