Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson1_4
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
e5538e05
authored
Apr 09, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
5215395d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
star.py
star.py
View file @
e5538e05
while
True
:
a
=
input
(
"what you name?"
)
print
(
'hello! '
+
a
)
\ No newline at end of file
wj
=
input
(
'请输入(剪刀/石头/布)'
)
print
(
'玩家出:'
+
wj
)
import
random
list
=
[
'剪刀'
,
'石头'
,
'布'
]
sj
=
random
.
choice
(
list
)
print
(
'电脑出:'
+
sj
)
if
sj
==
wj
:
print
(
'平局'
)
elif
(
sj
==
'剪刀'
and
wj
==
'石头'
)
or
(
sj
==
'石头'
and
wj
==
'布'
)
or
(
sj
==
"布"
and
wj
==
'剪刀'
):
print
(
"你赢了"
)
else
:
print
(
'你输了'
)
for
i
in
range
(
10
):
print
(
'废物垃圾250连电脑都输LLLLLLLLLLLLLLLLLL'
)
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