Commit e1140ebe by BellCodeEditor

auto save

parent a7db813a
Showing with 8 additions and 5 deletions
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} wenjianjia=open(r'C:\Users\EDZ\Desktop\爆米花.txt','a',encoding='utf-8')
#路径 'w'代表写入 encoding编码是utf-8固定不变的
# 请将"农夫山泉"删掉,并打印出新的商品信息 #wenjianjia.write('\n')
#wenjianjia.close()
with open(r'C:\Users\EDZ\Desktop\爆米花.txt','a',encoding='utf-8') as wenjianjia:
wenjianjia.write('\n面包也是老六')
\ 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