Commit adb9ad83 by BellCodeEditor

save project

parent e72abb1f
Showing with 12 additions and 10 deletions
'''
file=open(r'C:\Users\Makcoo-Bellcode\Desktop\SB','w',encoding='utf-8')
file.write("小兰:12本\n")
file.write("小丽:11本\n")
file.write("李文:9本\n")
file.write("张伟:16本\n")
'''
file=open(r'C:\Users\Makcoo-Bellcode\Desktop\SB','r',encoding='utf-8')
sb = read()
print(sb)
#with open(r'C:\Users\Makcoo-Bellcode\Desktop\wc.txt','a',encoding='utf-8') as file:
#file.write("小红是傻逼!")
with open(r'C:\Users\Makcoo-Bellcode\Desktop\wc.txt','a',encoding='utf-8') as file:
a=file.read()
print(a)
for data in a:
if "小红是傻逼!" in data:
print("数据在文件里")
else:
print("数据不在文件里")
data = dada.repl
\ 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