Commit e2c6b4c7 by BellCodeEditor

save project

parent 2eea0056
Showing with 5 additions and 3 deletions
fiel1=open('C:\\Users\\Administrator\\Desktop\\test.txt','w',encoding='utf-8')
fiel1.write('gjegsr:-10101010101010100\n')
fiel1.close()
with open('C:\\Users\\Administrator\\Desktop\\test.txt','a',encoding='utf-8') as fiel1:
fiel1.write('gjtyfhhtrf:-101010101010100\n')
\ No newline at end of file
with open('C:\\Users\\Administrator\\Desktop\\test.txt','r',encoding='utf-8') as fiel1:
for data in fiel1:
if'gjegsr:-10101010101010100'in data:
print("hufgi")
\ 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