Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_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
3388cbaa
authored
Sep 07, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
8b72b5e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
19 deletions
dily.py
func.py
j.py
dily.py
View file @
3388cbaa
def
add
(
x
,
y
):
z
=
x
+
y
print
(
"z的值为:"
,
z
)
#return z
\ No newline at end of file
def
add
(
x
,
y
):
w
=
x
+
y
print
(
w
)
#return (w)
add
(
8
,
7
)
\ No newline at end of file
func.py
View file @
3388cbaa
z
=
[]
while
True
:
a
=
int
(
input
(
"输入价格"
))
if
a
==
"stop"
:
break
else
:
try
:
a1
=
int
(
a
)
except
:
print
(
"输入数字"
)
def
new
():
z
=
[]
while
True
:
a
=
input
(
"输入价格:"
)
if
a
==
"stop"
:
break
else
:
z
.
append
(
a1
)
try
:
a1
=
int
(
a
)
except
:
print
(
"请输入数字"
)
else
:
z
.
append
(
a1
)
print
(
z
)
new
()
\ No newline at end of file
return
(
z
)
h
=
new
()
print
(
z
)
\ No newline at end of file
j.py
0 → 100644
View file @
3388cbaa
import
turtle
pen
=
turtle
.
Pen
()
d
=
1
for
i
in
range
(
300
):
pen
.
forward
(
d
)
pen
.
left
(
91
)
d
=
d
+
1
pen
.
hideturtle
()
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