Commit ff43cf52 by BellCodeEditor

save project

parent 9d3468b3
Showing with 6 additions and 3 deletions
with open(r'c:\Users\Administrator\Desktop\sales_list.txt','w',encoding='utf-8')as s:
for i in range(20):
s.write(str(i))
with open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')as s: with open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')as s:
hkd=s.read() n=s.read()
print(hkd) print(type(n[3:5]))
\ No newline at end of file \ 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