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
0bdbea1a
authored
Nov 20, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
fc4b8d4c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
SB.py
diy1.py
SB.py
View file @
0bdbea1a
SB
=
input
(
"玩家请出拳(剪刀/石头/布)"
)
print
(
"玩家出了"
+
SB
)
import
random
SB
=
[
"石头"
,
"剪刀"
,
"布"
]
b
=
random
.
choice
(
SB
)
print
(
b
)
diy1.py
View file @
0bdbea1a
name
=
input
(
"你叫什么名字"
)
print
(
name
+
"你真棒"
)
import
random
SB
=
input
(
"玩家请出拳"
)
print
(
"玩家出了"
+
SB
)
pp
=
[
"石头"
,
"剪刀"
,
"布"
]
a
=
random
.
choice
(
pp
)
print
(
"机器人出了什么拳"
+
a
)
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