Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_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
4c9a9127
authored
Mar 22, 2025
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4d572b27
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
3 deletions
cvn.py/mvnfdghudfghfdkhgufdygfd.py
diy2.py
etgregfr.py
s
sb.py
cvn.py/mvnfdghudfghfdkhgufdygfd.py
0 → 100644
View file @
4c9a9127
j
=
5
i
=
7
print
(
j
,
'*'
,
i
,
'='
,
(
j
*
i
))
\ No newline at end of file
diy2.py
View file @
4c9a9127
i
=
5
# 行
j
=
3
# 列
print
(
j
,
"*"
,
i
,
"="
,(
j
*
i
))
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
alist
=
[
88
,
75
,
72
,
82
,
90
,
85
,
78
,
91
]
m
=
len
(
alist
)
for
i
in
range
(
0
,
n
-
1
):
for
j
in
range
(
0
,
n
-
1
):
if
alist
[
j
]
<
alist
[
n
+
2
]:
alist
[
j
]
<
alist
[
n
-
1
]
=
alist
[
j
+
1
],
alist
[
j
]
print
(
alist
)
\ No newline at end of file
etgregfr.py
0 → 100644
View file @
4c9a9127
def
peach
(
n
):
if
n
==
10
:
return
1
num
=
(
peach
(
n
+
1
)
n
+
1
)
*
2
return
num
peach_num
=
peach
(
6
)
print
(
peach_num
)
\ No newline at end of file
s
0 → 100644
View file @
4c9a9127
def peach(n):
if n == 10:
\ No newline at end of file
sb.py
0 → 100644
View file @
4c9a9127
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"black"
)
colors
=
(
"green"
,
"red"
,
"orange"
,
"yellow"
)
for
i
in
range
(
300
):
pen
.
pencolor
(
colors
[
i
%
4
])
pen
.
forward
(
i
)
pen
.
right
(
91
)
pen
.
hideturtle
()
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