Commit 5b552ce9 by BellCodeEditor

save project

parent 4fc4af8f
Showing with 7 additions and 7 deletions
import func
file1=open(r'C:\test.txt','w',encoding='utf-8')
file1.write('小兰: 12本\n')
file1.write('小丽: 11本\n')
file1.write('李文:9本\n')
file1.write('张伟: 16本\n')
data = func.new_input()
score = func.sum(data)
print("这位选手的总分数为:"+str(score))
\ No newline at end of file
file1.close
\ 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