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
46a41e9b
authored
Jun 25, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3bfcff54
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
12.py
__pycache__/1.py
__pycache__/func.cpython-37.pyc
func.py
12.py
View file @
46a41e9b
import
func
import
func
e
=
func
.
new_input
()
e
=
func
.
new_input
()
f
=
func
.
sum
()
f
=
func
.
sum
(
e
)
print
(
"总价是"
+
str
(
f
))
\ No newline at end of file
__pycache__/1.py
0 → 100644
View file @
46a41e9b
file
=
open
(
r"C:\Users\玛酷\Desktop\book.txt"
,
"w"
,
encoding
=
"utf-8"
)
file
.
write
(
"34567"
)
file
.
close
()
\ No newline at end of file
__pycache__/func.cpython-37.pyc
View file @
46a41e9b
No preview for this file type
func.py
View file @
46a41e9b
...
@@ -20,8 +20,4 @@ def sum(money):
...
@@ -20,8 +20,4 @@ def sum(money):
count
=
0
count
=
0
for
i
in
money
:
for
i
in
money
:
count
=
count
+
i
count
=
count
+
i
return
count
return
count
\ No newline at end of file
price
=
new_input
()
print
(
"您一共消费了"
+
str
(
pay
)
+
"元!扫码还是现金呢?"
)
\ 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