From 6b786db423d76095fb56e65a403e39136263bd57 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 19 Jun 2021 14:13:42 +0800 Subject: [PATCH] save project --- diy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diy.py b/diy.py index 73f4492..45a9942 100644 --- a/diy.py +++ b/diy.py @@ -1 +1,4 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +file1=open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8') +file1.write('小兰:12本''小丽:11本''李文:9本''张伟:16本') +file1.close() \ No newline at end of file -- libgit2 0.25.0