Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_3
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
1360aa66
authored
Apr 09, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
ad691bd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
2 deletions
.py
SB.py
.py
View file @
1360aa66
i
=
3
i
=
5
us
=
"python"
us
=
"python"
ue
=
"123456"
ue
=
"123456"
while
True
:
while
True
:
...
@@ -11,9 +11,11 @@ while True:
...
@@ -11,9 +11,11 @@ while True:
break
break
if
n
!=
us
:
if
n
!=
us
:
print
(
"名字错误"
)
print
(
"名字错误"
)
print
(
"温馨提示,您还有"
+
str
(
i
)
+
"次机会"
)
continue
continue
if
p
!=
ue
:
el
if
p
!=
ue
:
print
(
"密码错误"
)
print
(
"密码错误"
)
print
(
"温馨提示,您还有"
+
str
(
i
)
+
"次机会"
)
else
:
else
:
print
(
"账号被锁定"
)
print
(
"账号被锁定"
)
exit
()
exit
()
...
...
SB.py
0 → 100644
View file @
1360aa66
'''import turtle
turtle.color("yellow")
turtle.dot(300)
turtle.forward(150)
turtle.color("white")
turtle.dot(150)
turtle.done()'''
'''a=int(input("请输入长方形形的宽"))
b=int(input("请输入长方形形的长"))
s=a*b
print("长方形的面积是",s)'''
'''a=float(input("请输入本子的单价:"))
b=float(input("请输入本子的数量:"))
c=float(input("请输入你带了多少钱:"))
d=a*b
if d>c:
print("False")
else:
print("True")'''
import
turtle
turtle
.
pensize
(
10
)
turtle
.
circle
(
-
70
,
steps
=
3
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
right
(
-
90
)
turtle
.
color
(
"red"
)
turtle
.
begin_fill
()
turtle
.
circle
(
30
)
turtle
.
end_fill
()
turtle
.
pencolor
(
"black"
)
turtle
.
circle
(
30
)
turtle
.
right
(
90
)
turtle
.
forward
(
-
100
)
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