Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-1_DIY1
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
519353a8
authored
Apr 25, 2026
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
13a09c8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
diy1.py
hd.py
diy1.py
View file @
519353a8
neme
=
input
(
"输入名字"
)
c
=
input
(
"请问是否参加比赛(“是”或者“否”):"
)
print
(
neme
+
"你好啊"
)
if
c
==
"是"
:
\ No newline at end of file
name
=
input
(
"请输入参赛者的名字: "
)
print
(
name
+
"欢迎参加石头剪刀布的比赛~"
)
p1
=
input
(
"石头/剪刀/布 : "
)
print
(
"玩家出拳:"
+
p1
)
else
:
print
(
"退出比赛"
)
hd.py
0 → 100644
View file @
519353a8
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