Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson12-1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6e0a3270
authored
Mar 30, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
7e3a2ff3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
0123456789.py
diy.py
你妈傻逼.py
0123456789.py
0 → 100644
View file @
6e0a3270
二、实践应用题
1
、
and
2
、
not
3
、
or
4
、
5
、
while
True
:
if
istouching
(
"悟空"
):
say
(
"hello!悟空,请先敲门"
,
2
)
else
:
if
istouching
(
"小贝"
):
say
(
"hello!小贝,欢迎来到我的房间"
,
2
)
else
:
say
(
"欢迎光临,我亲爱的朋友!"
,
2
)
diy.py
View file @
6e0a3270
# 写入同学们的捐赠明细:'小兰: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
你妈傻逼.py
0 → 100644
View file @
6e0a3270
++ "b/\344\275\240\345\246\210\345\202\273\351\200\274.py"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment