Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_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
3be123ca
authored
Jun 05, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
48415ebd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
01.py/02.py
01.py/__pycache__/swim1.cpython-37.pyc
01.py/01.py → 01.py/swim1.py
01.py/02.py
0 → 100644
View file @
3be123ca
import
swim1
xyz
=
swim1
.
new_input
()
result
=
swim1
.
sum1
(
xyz
)
print
(
result
)
\ No newline at end of file
01.py/__pycache__/swim1.cpython-37.pyc
0 → 100644
View file @
3be123ca
File added
01.py/
0
1.py
→
01.py/
swim
1.py
View file @
3be123ca
...
@@ -17,6 +17,6 @@ def sum1(money):
...
@@ -17,6 +17,6 @@ def sum1(money):
for
i
in
money
:
for
i
in
money
:
count
+=
i
count
+=
i
return
count
return
count
list1
=
new_input
()
#list1=new_input()
result
=
sum1
(
list1
)
#result=sum1(list1)
print
(
"您一共消费"
+
str
(
result
)
+
"元"
)
#print("您一共消费"+str(result)+"元")
\ No newline at end of file
\ 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