Commit d3ef1a5a by BellCodeEditor

save project

parent 24c1b63c
Showing with 10 additions and 6 deletions
while True: while True:
c=input('') d=str(input(''))
with open('C:\\Users\\Administrator\\Desktop\\test (2).txt','a',encoding='utf-8') as b: if d=='r':
b.write(c) with open('C:\\Users\\Administrator\\Desktop\\test (2).txt','r',encoding='utf-8') as b:
b.read() a=b.read()
print(a)
\ No newline at end of file if d=='w':
with open('C:\\Users\\Administrator\\Desktop\\test (2).txt','r',encoding='utf-8') as b:
c=input('')
b.write(c)
\ 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