From 6e0a327035cfa0b9377ffbe4143ea907bc3eb7e8 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 30 Mar 2024 13:37:12 +0800 Subject: [PATCH] auto save --- 0123456789.py | 16 ++++++++++++++++ diy.py | 5 +++++ 你妈傻逼.py | 0 3 files changed, 21 insertions(+) create mode 100644 0123456789.py create mode 100644 你妈傻逼.py diff --git a/0123456789.py b/0123456789.py new file mode 100644 index 0000000..5593d36 --- /dev/null +++ b/0123456789.py @@ -0,0 +1,16 @@ +二、实践应用题 +1、and +2、not +3、or +4、 + +5、 +while True: + if istouching("悟空"): + say("hello!悟空,请先敲门",2) + else: + if istouching("小贝"): + say("hello!小贝,欢迎来到我的房间",2) + else: + say("欢迎光临,我亲爱的朋友!",2) + diff --git a/diy.py b/diy.py index 73f4492..479dd8a 100644 --- a/diy.py +++ b/diy.py @@ -1 +1,6 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +with open(r"C:\Users\Student-A08\Desktop\123321.txt","w",encoding="utf-8")as a: + a.write("小兰:12本\n") + a.write("小丽:11本\n") + a.write("李文:9本\n") + a.write('张伟:16本') \ No newline at end of file diff --git "a/\344\275\240\345\246\210\345\202\273\351\200\274.py" "b/\344\275\240\345\246\210\345\202\273\351\200\274.py" new file mode 100644 index 0000000..e69de29 --- /dev/null +++ "b/\344\275\240\345\246\210\345\202\273\351\200\274.py" -- libgit2 0.25.0