Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_4_2
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
aa38bce5
authored
Oct 14, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d06176f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
16 deletions
1.py
diy2.py
ert.py
mjq.py/灌灌灌灌GV.py
1.py
View file @
aa38bce5
...
...
@@ -6,6 +6,6 @@ screen.bgcolor("black")
colors
[
"red"
,
"orange"
,
"yellow"
,
"rgeen"
]
for
i
in
range
(
1
,
300
):
pen
.
forward
(
i
)
pen
.
right
(
i
%
4
)
pen
.
hideturtle
(
91
)
pen
.
pencolor
(
colour
[
i
%
4
]
)
pen
.
right
(
91
)
turtle
.
done
()
\ No newline at end of file
diy2.py
View file @
aa38bce5
username
=
"python"
userpassword
=
"123456"
while
True
:
name
=
input
(
"请输入用户名:"
)
password
=
input
(
"请输入密码:"
)
if
name
==
username
and
password
==
userpassword
:
print
(
"登录成功!"
)
break
elif
name
!=
username
print
(
"顺丰到付"
)
else
:
print
(
"用户名和密码错误!请重新输入"
)
print
(
"欢迎来到贝尔编程!"
)
\ No newline at end of file
qwe
=
float
(
input
(
'请输入体重'
))
rty
=
float
(
input
(
'请输入身高'
))
QWE
=
qwe
/
(
rty
)
**
2
if
QWE
>=
28
:
print
(
'肥胖'
)
elif
QWE
<=
18.4
:
print
(
'偏瘦'
)
elif
QWE
>=
18.5
and
QWE
<=
23.9
:
print
(
'正常'
)
elif
QWE
>=
24.0
and
QWE
<=
27.9
:
print
(
"偏重"
)
ert.py
0 → 100644
View file @
aa38bce5
num
=
7
guess
=
int
(
input
(
"请你输入数字"
))
if
guess
==
num
:
print
(
'恭喜你,猜对了'
)
elif
guess
>
num
:
print
(
'猜大了'
)
else
:
print
(
'猜小了'
)
mjq.py/灌灌灌灌GV.py
0 → 100644
View file @
aa38bce5
++ "b/mjq.py/\347\201\214\347\201\214\347\201\214\347\201\214GV.py"
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