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
a4d7acce
authored
Dec 25, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
2c7acd2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
__pycache__/func.cpython-37.pyc
fds.py
func.py
__pycache__/func.cpython-37.pyc
0 → 100644
View file @
a4d7acce
File added
fds.py
0 → 100644
View file @
a4d7acce
import
func
dats
=
func
.
价格
()
score
=
func
.
sum
(
data
)
print
(
'总得分是'
+
str
(
score
))
\ No newline at end of file
func.py
View file @
a4d7acce
def
价格():
def
价格():
total
=
[]
total
=
[]
while
True
:
while
True
:
...
@@ -20,6 +19,6 @@ def sum(money):
...
@@ -20,6 +19,6 @@ def sum(money):
count
=
count
+
i
count
=
count
+
i
return
count
return
count
总价
=
价格
()
#总价=价格()
pay
=
sum
(
总价
)
#pay=sum(总价)
print
(
'支付宝收款'
+
str
(
pay
)
+
'元!'
)
#print('支付宝收款'+str(pay)+'元!')
\ 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