Commit 9d41970c by BellCodeEditor

save project

parent 224d7de1
Showing with 5 additions and 2 deletions
...@@ -5,4 +5,8 @@ file.close() ...@@ -5,4 +5,8 @@ file.close()
with open("C:\\Users\\wzj\\Desktop\\test.txt",'r',encoding ='utf-8') as file: with open("C:\\Users\\wzj\\Desktop\\test.txt",'r',encoding ='utf-8') as file:
a = file.read() a = file.read()
print(a) print(a)
\ No newline at end of file if "小强:11本" in file:
print("T")
else:
print("F")
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