Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-1
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
9def3c36
authored
Mar 10, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
f3b0ced6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
15 deletions
6.py
8.py
9.py
diy.py
ijjj.py
6.py
0 → 100644
View file @
9def3c36
username
=
"swjmt"
password
=
"12345"
cishu
=
5
while
True
:
if
cishu
>
0
:
print
(
"你还有"
,
cishu
,
"次🐔会"
)
username_in
=
input
(
"请输入你的用户名"
)
password_in
=
input
(
"请输入你的密码"
)
cishu
=
cishu
-
1
if
username_in
==
"q"
:
break
if
username
==
username_in
:
print
(
"用户名正确"
)
if
password
==
password_in
:
print
(
"密码正确,欢迎来到老八系统"
)
else
:
print
(
"密码错误"
)
else
:
print
(
"用户名错误"
)
else
:
print
(
"你的账号已被冻结"
)
\ No newline at end of file
8.py
0 → 100644
View file @
9def3c36
a
=
input
(
"请输入你的鞋码"
)
a
=
int
(
a
)
print
(
"你的脚长是:"
,(
a
+
10
)
/
2
,
"厘米"
)
\ No newline at end of file
9.py
0 → 100644
View file @
9def3c36
a
=
input
(
"输入乌龟的速度"
)
a
=
int
(
a
)
print
(
"乌龟追上兔子的时间是:"
,
100
/
a
,(
"秒"
))
\ No newline at end of file
diy.py
View file @
9def3c36
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识:
# 来,我给你起个头~
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
# bro1="关羽"
# bro2="刘备"
# bro3="张飞"
bros
=
[
"刘备"
,
"关羽"
,
"张飞"
,
"刘备"
]
# bro1=["关羽",160,8.5]
# bro2=["刘备",161,9.1]
# bro3=["张飞",166,8.3]
# bros[0]="关羽"
# bros[1]="刘备"
bros
.
remove
(
"刘备"
)
print
(
bros
)
\ No newline at end of file
ijjj.py
0 → 100644
View file @
9def3c36
username
=
"td"
password
=
"00"
x
=
1
while
True
:
if
x
>
0
:
print
(
"您还有"
,
x
,
"次机会"
)
username_in
=
input
(
"请输入你的用户名"
)
password_in
=
input
(
"请输入你的密码"
)
x
=
x
-
1
if
username
==
username_in
:
print
(
"用户名正确"
)
if
password
==
password_in
:
print
(
"密码正确"
)
break
else
:
print
(
"密码错误,请重新输入"
)
else
:
print
(
"该用户名不存在,请重新输入"
)
print
(
"请重新输入你的用户名和密码"
)
else
:
print
(
"无"
)
exit
()
print
(
"欢迎来到td系统"
)
\ 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