Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-3_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
57866790
authored
Feb 20, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
96a4bcfc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
0 deletions
1.py
2.py
3.py
4.py
1.py
View file @
57866790
i
=
3
n
=
'qqq'
s
=
123456
while
True
:
if
i
>
0
:
n1
=
input
(
'用户名'
)
s1
=
int
(
input
(
'用户密码'
))
i
-=
1
if
n1
==
n
and
s1
==
s
:
print
(
'密码正确'
)
break
if
n1
!=
n
:
print
(
'用户名错误'
)
if
s1
!=
s
:
print
(
'密码错误'
)
exit
()
print
(
'欢迎'
)
\ No newline at end of file
2.py
0 → 100644
View file @
57866790
h
=
[
'red'
,
'green'
,
'orange'
,
'yellow'
]
import
turtle
pen
=
turtle
.
Pen
()
i
=
1
for
i
in
range
(
300
):
pen
.
forward
(
i
)
pen
.
pencolor
(
h
[
i
%
4
])
pen
.
right
(
91
)
i
+=
1
turtle
.
done
()
\ No newline at end of file
3.py
0 → 100644
View file @
57866790
for
a
in
range
(
1
,
10
):
for
j
in
range
(
1
,
a
+
1
):
print
(
j
,
'*'
,
a
,
'='
,(
j
*
a
),
end
=
' '
)
print
()
\ No newline at end of file
4.py
0 → 100644
View file @
57866790
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