Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-4-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
a065cf90
authored
Mar 13, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a068e6b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
diy1.py
diy1.py
View file @
a065cf90
player
=
input
(
"请玩家出石头/剪刀/布/)
player
=
input
(
"请玩家出石头/剪刀/布/)
print("
请玩家出
"+player)
print("
请玩家出
"+player)
import random
import random
list=["
石头
","
剪刀
","
布
"
,
]
list=["
石头
","
剪刀
","
布
"]
computer=random.choice(list)
computer=random.choice(list)
print(computer)
print(computer)
if player == computer:
if player == computer:
print("
啊,
默契很足呢
,前辈
")
print("
啊,
很有默契啊
,前辈
")
elif player=="
剪刀
"and computer=="
布
":
elif player=="
剪刀
"and computer=="
布
":
print("
啊啊啊,不要拿走我的肾脏,求求你,放过我吧
")
print("
啊啊啊,不要拿走我的肾脏,求求你,放过我吧
")
elif player=="
石头
"and computer=="
剪刀
":
elif player=="
石头
"and computer=="
剪刀
":
...
...
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