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
9ec266c9
authored
Mar 19, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7a8f92b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
__pycache__/func.cpython-37.pyc
func.py
liuchang.py
__pycache__/func.cpython-37.pyc
0 → 100644
View file @
9ec266c9
File added
func.py
View file @
9ec266c9
...
@@ -14,7 +14,7 @@ def new_input():
...
@@ -14,7 +14,7 @@ def new_input():
finally
:
finally
:
print
(
'=============================================================='
)
print
(
'=============================================================='
)
return
totle
return
totle
a
=
new_input
()
#
a = new_input()
def
sum
(
money
):
def
sum
(
money
):
count
=
0
count
=
0
...
@@ -22,6 +22,10 @@ def sum(money):
...
@@ -22,6 +22,10 @@ def sum(money):
count
=
count
+
i
count
=
count
+
i
return
count
return
count
pay
=
sum
(
a
)
#pay = sum(a)
print
(
'您一共消费了'
+
str
(
pay
)
+
'元'
)
#print('您一共消费了' + str(pay) + '元')
liuchang.py
0 → 100644
View file @
9ec266c9
from
func
import
*
data
=
new_input
()
score
=
sum
(
data
)
print
(
'总分为:'
+
str
(
score
))
\ 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