Commit f0914572 by BellCodeEditor

save project

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