Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_5
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
a269f0c3
authored
Jun 05, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
4ce966e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
1.py
pp.py
qqq.py
1.py
0 → 100644
View file @
a269f0c3
username
=
"python"
userpassword
=
"123456"
i
=
3
while
True
:
if
i
>=
1
:
name
=
input
(
"请输入用户名:"
)
password
=
input
(
"请输入密码:"
)
i
-=
1
if
name
==
username
:
if
password
==
userpassword
:
print
(
"登录成功!"
)
else
:
print
(
"密码错误!请重新输入"
)
else
:
print
(
"用户名错误!请重新输入"
)
else
:
print
(
"您的账号已锁定,请您到我公司柜台解锁"
)
exit
()
print
(
"用户名和密码错误!请重新输入"
)
print
(
"欢迎来到贝尔编程!"
)
\ No newline at end of file
pp.py
0 → 100644
View file @
a269f0c3
import
random
p
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
]
i
=
random
.
choice
(
p
)
print
(
i
)
\ No newline at end of file
qqq.py
0 → 100644
View file @
a269f0c3
import
turtle
#加载turtle功能
pen
=
turtle
.
Pen
()
#定义画笔
screen
=
turtle
.
Screen
()
#定义画布
screen
.
bgcolor
(
"pink"
)
pen
.
forward
(
200
)
#画笔向前走200步
ok
=
input
(
"你想画多大圆"
)
#
okk
=
int
(
ok
)
pen
.
circle
(
okk
)
import
random
p
=
[
50
,
100
,
150
,
200
]
pen
.
circle
(
random
.
choice
(
p
))
turtle
.
done
()
\ 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