Commit 2121a541 by BellCodeEditor

save project

parent 316d4078
Showing with 8 additions and 2 deletions
...@@ -2,4 +2,10 @@ sml=open(r'D:\江\k.txt','w',encoding='utf-8') ...@@ -2,4 +2,10 @@ sml=open(r'D:\江\k.txt','w',encoding='utf-8')
sml.write('hhh:114514本\nhs:114514本\nkjah\n') sml.write('hhh:114514本\nhs:114514本\nkjah\n')
sml=open(r'D:\江\k.txt','a',encoding='utf-8') sml=open(r'D:\江\k.txt','a',encoding='utf-8')
sml.write('hjhj:32454\n') sml.write('hjhj:32454\n')
sml.close() sml=open(r'D:\江\k.txt','r',encoding='utf-8')
\ No newline at end of file for i in sml:
i="hjhj:32454\n"
if i in sml:
print('yes')
else:
print('no')
\ 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