Commit 4860419b by BellCodeEditor

save project

parent 5ec53ebb
Showing with 8 additions and 0 deletions
#方法一:
#变量名=open(参数1:文件路径,参数2:操作模式,参数3:编码类型)
#file=open(r'C:\Users\松果3号机\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
#方法二:
#with open(参数1:文件路径,参数2:操作模式,参数3:编码类型) as 变量名:
with open(r'C:\Users\松果3号机\Documents\lesson13-1\sales_list.txt','w',encoding='utf-8') as 变量名:
\ 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