Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson1_4
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
13685e3e
authored
Jul 27, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a1599e0b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
58 additions
and
59 deletions
__pycache__/tist.cpython-37.pyc
kuozhan.py
python
star.py
task1.py
task2.py
tist.py
xxx.py
__pycache__/tist.cpython-37.pyc
0 → 100644
View file @
13685e3e
File added
kuozhan.py
View file @
13685e3e
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
size
=
screen
.
textinput
(
"提示"
,
"你想要多大的魔法阵?"
)
pen
.
circle
(
int
(
size
),
360
)
pen
.
circle
(
int
(
size
),
360
,
3
)
pen
.
circle
(
int
(
size
),
60
)
pen
.
circle
(
int
(
size
),
360
,
3
)
turtle
.
done
()
\ No newline at end of file
num
=
0
while
num
<
20
:
if
num
%
2
==
1
:
print
(
num
)
num
+=
1
\ No newline at end of file
python
View file @
13685e3e
name=input("请输入名字")
CJ=input("请输入成绩")
print(name+"的英语成绩是:"+CJ)
\ No newline at end of file
count=0
while True:
print("count的值为:"+str(count))
if count==5:
continue
if count==10:
break
count+=1
print("c程序结束")
\ No newline at end of file
star.py
View file @
13685e3e
usename
=
"fhhhb"
usemima
=
"we are dsb"
import
tist
import
random
usename
=
"123"
usemima
=
"abc"
cishu
=
3
while
True
:
if
cishu
==
0
:
...
...
@@ -7,27 +10,14 @@ while True:
exit
()
name
=
input
(
"请输入账户名:"
)
mima
=
input
(
"请输入密码:"
)
print
(
tist
.
yzm
)
yz
=
input
(
"请输入验证码"
)
if
usename
==
name
and
usemima
==
mima
:
if
usename
==
name
and
usemima
==
mima
and
yz
==
tist
.
yzm
:
print
(
"登陆成功"
)
print
(
"-"
*
30
)
break
if
usename
!=
name
and
usemima
==
mima
:
print
(
"账户名错误❌"
)
print
(
"登陆失败"
)
print
(
"-"
*
30
)
cishu
=
cishu
-
1
if
usemima
!=
mima
and
usename
==
name
:
print
(
"密码错误❌"
)
print
(
"登陆失败"
)
print
(
"-"
*
30
)
cishu
=
cishu
-
1
else
:
print
(
"账户和密码错误❌"
)
print
(
"登陆失败"
)
print
(
"-"
*
30
)
cishu
=
cishu
-
1
print
(
"欢迎来到对抗路"
)
task1.py
View file @
13685e3e
a
=
"冯慧恒"
b
=
",男"
c
=
",12"
d
=
",喜欢玩手机"
print
(
a
+
b
+
c
+
d
)
\ No newline at end of file
count
=
0
while
True
:
print
(
"count的值为:"
+
str
(
count
))
if
count
==
5
:
break
if
count
==
10
:
continue
count
+=
1
print
(
"程序结束"
)
\ No newline at end of file
task2.py
View file @
13685e3e
import
turtle
pen
=
turtle
.
Pen
()
pen
.
left
(
45
)
pen
.
circle
(
50
,
180
)
pen
.
left
(
90
)
pen
.
forward
(
100
)
pen
.
left
(
180
)
pen
.
circle
(
-
50
,
180
)
pen
.
right
(
90
)
pen
.
forward
(
100
)
i
=
10
for
i
in
range
(
300
):
pen
.
forward
(
i
)
pen
.
right
(
91
)
i
+=
2
turtle
.
done
()
\ No newline at end of file
tist.py
0 → 100644
View file @
13685e3e
import
random
yzm
=
""
random_list
=
[
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
"a"
,
"b"
,
"c"
,
"d"
,
"e"
]
for
i
in
range
(
4
):
random_str
=
random
.
choice
(
random_list
)
yzm
=
yzm
+
random_str
print
(
yzm
)
\ No newline at end of file
xxx.py
View file @
13685e3e
...
...
@@ -18,14 +18,11 @@ pen.penup()
pen
.
forward
(
30
)
pen
.
left
(
90
)
pen
.
forward
(
50
)
pen
.
pendown
()
pen
.
pencolor
(
"green"
)
pen
.
circle
(
50
,
360
)
pen
.
penup
()
pen
.
forward
(
90
)
pen
.
pendown
()
pen
.
pencolor
(
"yellow"
)
pen
.
circle
(
50
,
360
)
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
import
turtle
pen
=
turtle
.
Pen
()
i
=
1
while
True
:
for
i
in
range
(
4
):
forward
(
i
)
turtle
.
done
()
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