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
30df0758
authored
May 23, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4ec5328f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
__pycache__/func.cpython-37.pyc
asdfhk..bsdfjbkfbkjdfkbjdfbjfdjbjdfbjfnjbndjnjfnjnbjndfjbjbnfjdbjdnfjbnjfnbjfdnjhtuhguufbjegbureugbubfugbreugbutrbh.py
func.py
阿斯顿法国红酒kl
__pycache__/func.cpython-37.pyc
0 → 100644
View file @
30df0758
File added
asdfhk..bsdfjbkfbkjdfkbjdfbjfdjbjdfbjfnjbndjnjfnjnbjndfjbjbnfjdbjdnfjbnjfnbjfdnjhtuhguufbjegbureugbubfugbreugbutrbh.py
0 → 100644
View file @
30df0758
import
func
res
=
func
.
test
()
print
(
res
)
sum
=
cal
(
res
)
print
(
"总分是"
+
res
(
sum
))
\ No newline at end of file
func.py
View file @
30df0758
...
...
@@ -17,6 +17,3 @@ def cal(money):
for
i
in
money
:
total
+=
i
return
total
list
=
o
()
totalmoney
=
cal
(
list
)
print
(
"总价是"
+
str
(
totalmoney
))
\ No newline at end of file
阿斯顿法国红酒kl
0 → 100644
View file @
30df0758
def o():
def o():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
try:
unit=int(unit)
except:
print("滚,穷鬼")
break
else:
total.append(unit)
return total
def cal(money):
total = 0
for i in money:
total += i
return total
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