Commit 40918e61 by BellCodeEditor

save project

parent ec484ee0
Showing with 13 additions and 2 deletions
1mport func
import func
data = func.new_inpot()
sorce = func.sum(data)
print("这位选手得分"+str(sorce))
import turtle
file= open(r'C:\Users\lhy\Desktop\新建文件夹\book.txt','w',encoding='utf-8')
file.write('小兰:12本\n')
file.write('小明:10本\n')
file.close()
with open(r'C:\Users\lhy\Desktop\新建文件夹\book.txt','a',encoding='utf-8') as file:
file.write('小兰:12本\n')
file.write('小明:10本\n')
\ 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