Commit eeb0bfb4 by BellCodeEditor

save project

parent 839aab67
Showing with 5 additions and 2 deletions
......@@ -7,4 +7,8 @@ n.write("abaaba\n")
n.close()
with open(r"C:\Users\Administrator\Desktop\我是大聪明.txt","r",encoding="utf-8") as a:
n=a.read()
print(n)
\ No newline at end of file
print(n)
with open(r"C:\Users\Administrator\Desktop\我是大聪明.txt","r",encoding="utf-8") as abc:
for wssb in abc:
if"abaaba"in wssb:
print("数据在文件中")
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