Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_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
641d8dc6
authored
Nov 17, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
024fb164
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
9 deletions
1.py
8.py
__pycache__/func.cpython-37.pyc
func.py
1.py
0 → 100644
View file @
641d8dc6
import
turtle
turtle
.
speed
(
0
)
turtle
.
forward
(
100
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
done
()
\ No newline at end of file
8.py
0 → 100644
View file @
641d8dc6
import
turtle
turtle
.
penup
()
turtle
.
goto
(
0
,
-
50
)
turtle
.
pendown
()
turtle
.
circle
(
50
)
turtle
.
penup
()
turtle
.
goto
(
-
50
,
0
)
turtle
.
down
()
turtle
.
forward
(
100
)
turtle
.
penup
()
turtle
.
goto
(
0
,
50
)
turtle
.
right
(
90
)
turtle
.
down
()
turtle
.
forward
(
100
)
turtle
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
__pycache__/func.cpython-37.pyc
0 → 100644
View file @
641d8dc6
File added
func.py
View file @
641d8dc6
total
=
[]
def
new_input
():
while
True
:
total
=
[]
unit
=
input
(
"请输入:"
)
while
True
:
if
unit
==
'q'
:
money
=
input
(
"输入q退出"
)
break
if
money
==
'q'
:
else
:
break
total
.
append
(
unit
)
else
:
print
(
total
)
try
:
\ No newline at end of file
money
=
int
(
money
)
except
:
print
(
'请重输入一个数字'
)
finally
:
total
.
append
(
money
)
print
(
'*'
*
30
)
return
total
def
sum
(
money
):
count
=
0
for
i
in
money
:
count
=
count
+
i
return
count
# price=new_input()
# pay=sum(price)
# print('您一共消费了'+ str(pay) +'元')
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