Commit 6e0a3270 by BellCodeEditor

auto save

parent 7e3a2ff3
Showing with 23 additions and 0 deletions
二、实践应用题
1and
2not
3or
4
5
while True:
if istouching("悟空"):
say("hello!悟空,请先敲门",2)
else:
if istouching("小贝"):
say("hello!小贝,欢迎来到我的房间",2)
else:
say("欢迎光临,我亲爱的朋友!",2)
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' # 写入同学们的捐赠明细:'小兰: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
++ "b/\344\275\240\345\246\210\345\202\273\351\200\274.py"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment