Commit af257f49 by BellCodeEditor

save project

parent 05e7d622
Showing with 31 additions and 0 deletions
def func(x,y):
if x<y:
return y
else:
return x
t=func(3,5)
print(t)
def new_input():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
return total
def abc(list1):
sum1=0
for i in list1:
sum1+=i
return sum1
#result=new_input()
#pay=abc(result)
#print('一共需要',pay,'元')
\ No newline at end of file
import func
import func
list1=func.new_input()
xyz=func.abc()
func.abc()
\ No newline at end of file
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