Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-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
850aff0f
authored
Sep 20, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
5ef0c3e5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
2 deletions
diy1.py
qwe.py
qwertyuiop[.py
↗水水水水水水水水水水水水是一套水水水水飞机空间环境Jeri哦囧i哦给他人迥然囧囧囧。.py
二十多.py
diy1.py
deleted
100644 → 0
View file @
5ef0c3e5
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
qwe.py
0 → 100644
View file @
850aff0f
player
=
input
(
"请出拳(石头/剪刀/布):"
)
print
(
"玩家出拳:"
+
player
)
import
random
list
=
[
"石头"
,
"剪刀"
,
"布"
]
computer
=
random
.
choice
(
list
)
print
(
"计算机出拳:"
+
computer
)
if
player
in
list
:
if
player
==
computer
:
print
(
"平局"
)
elif
(
player
==
"石头"
and
computer
==
"剪刀"
)
or
(
player
==
"剪刀"
and
computer
==
"布"
)
or
(
player
==
"布"
and
computer
==
"石头"
):
print
(
"恭喜,你赢了"
)
else
:
print
(
"很遗憾,你输了"
)
else
:
print
(
"你出错了"
)
\ No newline at end of file
qwertyuiop[.py
0 → 100644
View file @
850aff0f
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
colors
=
[
'green'
,
'red'
,
'orange'
,
'yellow'
]
for
i
in
range
(
1
,
11300
):
pen
.
pencolor
(
colors
[
i
%
4
])
pen
.
forward
(
i
)
pen
.
right
(
91
)
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
↗水水水水水水水水水水水水是一套水水水水飞机空间环境Jeri哦囧i哦给他人迥然囧囧囧。.py
0 → 100644
View file @
850aff0f
import
random
import
random
play
=
input
(
"请出拳(o/v/w):"
)
print
(
"玩家出拳:"
+
play
)
\ No newline at end of file
二十多.py
0 → 100644
View file @
850aff0f
i
=
10
i
=
10
username
=
'qwert'
userpassword
=
'1234'
while
True
:
if
i
=
0
:
name
=
input
(
"请输入用户名"
)
password
=
input
(
"请输入密码"
)
i
-=
1
if
name
=
password
and
password
=
name
:
print
(
"登路成功!"
)
break
if
name
!=
username
:
print
(
"用户名错误,请重新输入!"
)
continue
if
password
!=
userpassword
:
print
(
"密码错误,请重新输入!"
)
else
:
print
(
"你的账号被锁定"
)
print
(
"登路成功"
)
\ No newline at end of file
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