Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson10-4

  • This project
    • Loading...
  • Sign in
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 58e9095e authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 97cea2d8
Hide whitespace changes
Inline Side-by-side
Showing with 12 additions and 6 deletions
  • 高速扔高速.py/xdffggfdt.py
高速扔高速.py/xdffggfdt.py
View file @ 58e9095e
def new_input(): def new_input():
def new_input(): def new_input():
total = [] total = []
while True: while True:
unit = input('请输入(q)') money = input('请输入(q)')
if unit == 'q': if money == 'q':
break break
else: else:
try: try:
unit = int(unit) money = int(unit)
except: except:
print('') print('')
else: else:
\ No newline at end of file total.append(money)
finally:
print("-"*30)
return total
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment