Commit adb9ad83 by BellCodeEditor

save project

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