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