Commit 70add96c by BellCodeEditor

save project

parent 6ff32ad5
Showing with 8 additions and 10 deletions
file1=open("C:\Users\Administrator\Desktop\text.txt'w'encoding='utf_8")
file1.('小兰:12本\n')
file1.('小丽:11本\n')
file1.('李文:9本\n')
file1.('张伟:16本\n')
with open("C:\Users\Administrator\Desktop\text.txt'w'encoding='utf_8")as file
file1.write('小强:10本\n')
file1.write('李明:15本\n')
file1.close()
\ No newline at end of file
class Hero:
def __init__(self):
self.hp=180
self.gongjili=300
self.fangyuli=3
xueshanjingying=Hero()
print(xueshanjingying.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