Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_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
ee125b61
authored
Jan 01, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
47032867
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
7 deletions
11111.py
123.py
a.py
diy1.py
啊啊啊。py
11111.py
0 → 100644
View file @
ee125b61
###计算长方形的面积###
a
=
6
#长方形的长
b
=
3
#长方形的宽
s
=
a
*
b
#长方形的面积
print
(
s
)
\ No newline at end of file
123.py
0 → 100644
View file @
ee125b61
import
turtle
t
=
turtle
.
Turtle
()
for
i
in
range
(
4
):
t
.
forward
(
200
)
t
.
left
(
90
)
t
.
penup
()
t
.
goto
(
100
,
100
)
t
.
dot
(
20
,
"red"
)
t
.
goto
(
60
,
100
)
t
.
dot
(
20
,
"red"
)
t
.
goto
(
140
,
100
)
t
.
dot
(
20
,
"red"
)
t
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
a.py
0 → 100644
View file @
ee125b61
f
=
open
(
r"C:\Users\MAYI_robot\Desktop\zzh.txt"
,
"w"
,
encoding
=
'utf-8'
)
f
.
write
(
'元旦快乐
\n
'
)
diy1.py
View file @
ee125b61
jzh
=
"111111"
# 保存在服务器数据库中的用户账号(正确的账号)
mm
=
"3.14"
i
=
3
while
True
:
a
=
input
(
"输入账号:"
)
b
=
input
(
"输入密码:"
)
if
a
==
jzh
and
b
==
mm
:
print
(
"账号、密码正确,登陆成功"
)
break
else
:
print
(
"达咩"
)
if
i
>
0
:
i
=
i
-
1
a
=
input
(
"输入账号:"
)
b
=
input
(
"输入密码:"
)
if
a
==
jzh
and
b
==
mm
:
print
(
"账号、密码正确,登陆成功"
)
break
if
a
!=
jzh
:
print
(
"陈浩不存在"
)
print
(
"你还有"
+
str
(
i
)
+
"次机会"
)
continue
if
b
!=
mm
:
print
(
"陈浩错误"
)
print
(
"你还有"
+
str
(
i
)
+
"次机会"
)
print
(
"明年来吧"
)
exit
()
啊啊啊。py
0 → 100644
View file @
ee125b61
f=open(r"C:\\Users\MAYI_robotDesktop\zzh.txt","w",encoding='utf-8')
f=open(r"C:\\Users\MAYI_robotDesktop\zzh.txt","w",encoding='utf-8')
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