From f82c1019fa61f30e30392b42fd761a603bae1707 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 6 Apr 2025 11:28:44 +0800 Subject: [PATCH] save project --- diy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/diy.py b/diy.py index df9af52..eb7ac4a 100644 --- a/diy.py +++ b/diy.py @@ -1,4 +1,3 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' -a=open(r'C:\Users\cc\Desktop\sww.txt','w',encoding='utf-8') -a.write('小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本') -a.close() \ No newline at end of file +with open(r'C:\Users\cc\Desktop\sww.txt','w',encoding='utf-8')as a: + a.write('sdnargj') -- libgit2 0.25.0