From 0c400ad24a9d0a1a1dc488e4e07775b86f3aae57 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 6 Aug 2022 17:32:06 +0800 Subject: [PATCH] save project --- diy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/diy.py b/diy.py index 78f5714..e0fb7d3 100644 --- a/diy.py +++ b/diy.py @@ -1,4 +1,4 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' -with open(r'C:\Users\makcoo\Desktop\book.txt','w',encoding='utf-8') as file: - file.write(input()) - file.close() \ No newline at end of file +ikun=open(r'C:\Users\Administrator\Desktop\book.txt','w',encoding='UTF-8') +ikun.write(input()) +ikun.close() \ No newline at end of file -- libgit2 0.25.0