Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_3
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
bac50ca8
authored
Feb 11, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3003af75
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
diy
diy.py
diy7.py
diy
0 → 100644
View file @
bac50ca8
diy.py
View file @
bac50ca8
...
@@ -12,4 +12,12 @@ def new_input():
...
@@ -12,4 +12,12 @@ def new_input():
else
:
else
:
total
.
append
(
writ
)
total
.
append
(
writ
)
print
(
"~"
*
30
)
print
(
"~"
*
30
)
new_input
()
return
total
\ No newline at end of file
def
sum
(
money
):
count
=
0
for
i
in
money
:
count
=
count
+
1
return
count
price
=
new_input
()
pay
=
sum
(
price
)
print
(
"您一共花了"
+
str
(
pay
)
+
"元"
)
\ No newline at end of file
diy7.py
0 → 100644
View file @
bac50ca8
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