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

Administrator / lesson11_5

  • 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 c28e8855 authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 05e7d622
Hide whitespace changes
Inline Side-by-side
Showing with 27 additions and 0 deletions
  • __pycache__/func.cpython-37.pyc
  • fun.py
  • func.py
__pycache__/func.cpython-37.pyc 0 → 100644
View file @ c28e8855
File added
This diff is collapsed. Click to expand it.
fun.py 0 → 100644
View file @ c28e8855
import func
a=func.abc()
c=func.cba(a)
print(c)
\ No newline at end of file
This diff is collapsed. Click to expand it.
func.py 0 → 100644
View file @ c28e8855
def abc():
total = []
while True:
try:
unit= float(input("请输入:"))
except:
print("请输入数字")
else:
if unit== -1:
break
else:
total.append(unit)
return total
#a=abc()
def cba(b):
count=0
for i in b:
count+=i
return count
#c=cba(a)
#print(c)
\ No newline at end of file
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