From 5958777633d2d35e9a8e6d11d3286da109c9a170 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 28 Aug 2022 11:04:37 +0800 Subject: [PATCH] save project --- diy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/diy.py b/diy.py index 73f4492..fa5a299 100644 --- a/diy.py +++ b/diy.py @@ -1 +1,5 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +t=open(r"C:\Users\23636\Desktop\texts.txt","w",encoding="utf-8") +t.write('小兰:12本\n') +t.write('小丽:11本\n') +t.close() -- libgit2 0.25.0