Commit 6e75285b by BellCodeEditor

save project

parent 3150c8d9
Showing with 17 additions and 7 deletions
#file=open("C:\\Users\\hy\\Desktop\\book.txt","w",encoding='utf-8')
#file=open("C:\\Users\\hy\\Desktop\\book.txt","w",encoding='utf-8')
#file=open("C:\\Users\\hy\\Desktop\\book.txt","w",encoding='utf-8')
#file.write("小兰:12,小丽:11,李文:9,张伟:16,")
#fill.close()
#file.close()
file1=open("C:\\Users\\hy\\Desktop\\book.txt","a",encoding='utf-8')
file1.write('小强:12,李明:15')
file1.close()
\ No newline at end of file
#file1=open("C:\\Users\\hy\\Desktop\\book.txt","a",encoding='utf-8')
#file1.write('小强:12,李明:15')
#file1.close()
new_data=''
file1=open("C:\\Users\\hy\\Desktop\\book.txt","r",encoding='utf-8')
for data in file1():
if '小强:12' in file1:
print("xiaoqiang")
if '李明:15' in file1:
print('liming')
\ No newline at end of file
import func
import func
import turtle
he=func.new_input()
she=func.sum(he)
print("这位选手的总分数为:"+str(she)+"分")
print("总分为"+str(she)+"分")
\ 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