From 3cc73a96b396a2330d80a71ff671725db3039482 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 13 Jun 2021 10:36:37 +0800 Subject: [PATCH] save project --- aaa.py | 3 +++ diy.py | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 aaa.py create mode 100644 diy.py diff --git a/aaa.py b/aaa.py new file mode 100644 index 0000000..2efe8fc --- /dev/null +++ b/aaa.py @@ -0,0 +1,3 @@ +with open(r'D:\HMCL\ty.txt','r',encoding='utf-8') as file_1: + for data in file_1: + print(data) \ No newline at end of file diff --git a/diy.py b/diy.py new file mode 100644 index 0000000..848d79c --- /dev/null +++ b/diy.py @@ -0,0 +1,8 @@ +# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +file_1=open(r'D:\HMCL\ty.txt','w',encoding='utf-8') + +file_1.write("SB 250\n") + +file_1.write("SB 250\n") + +file_1.close() -- libgit2 0.25.0