Commit ef11410e by BellCodeEditor

save project

parent 60241251
Showing with 5 additions and 2 deletions
......@@ -5,4 +5,7 @@ with open('C:\\Users\\admin\\Desktop\\test.txt','a',encoding='utf-8') as file:
file.write("悟空最狗 0\n")
with open('C:\\Users\\admin\\Desktop\\test.txt','r',encoding='utf-8') as file:
a=file.read()
print(a)
\ No newline at end of file
print(a)
for i in file:
if'悟空最狗 0'in ii:
print("在")
\ 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