Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_2
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
72da5a9c
authored
Nov 21, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3e16082c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
def.py
er.py
sgp.py
def.py
0 → 100644
View file @
72da5a9c
def
fac
(
n
):
if
n
==
1
:
return
1
;
else
:
return
n
*
fac
(
n
-
1
)
num
=
int
(
input
(
"请输入一个整数"
))
res
=
fac
(
num
)
print
(
"
%
d的乘阶是5
%
d
%
(num,res)"
)
\ No newline at end of file
er.py
0 → 100644
View file @
72da5a9c
唧唧复唧唧,木兰当户织。不问机杼声,问闻女叹息。
问女何所思,问女何所忆。女亦无所思,女亦无所忆。
\ No newline at end of file
sgp.py
0 → 100644
View file @
72da5a9c
import
turtle
pen
=
turtle
.
Pen
()
Sc
=
turtle
.
Screen
()
Sc
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"green"
,
"blue"
]
for
i
in
range
(
900
):
pen
.
forward
(
i
)
pen
.
right
(
60
)
pen
.
pencolor
(
colors
[
i
%
4
])
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