Commit b1547424 by BellCodeEditor

save project

parent 63783e28
def abc():
total = []
while True:
unit = input('')
unit = input('请输入')
if unit == 'q':
break
else:
......@@ -14,7 +14,107 @@ def abc():
finally:
print('-'*30)
return total
def sam(money):
def sum(money):
a=0
for i in money:
a+=i
return a
price=abc()
pay=sum(price)
# print('消费'+str(pay)+'元')
abc()
def abc():
total = []
while True:
unit = input('请输入')
if unit == 'q':
break
else:
try:
unit=int(unit)
except:
print('整数!')
else:
total.append(unit)
finally:
print('-'*30)
return total
def sum(money):
a=0
for i in money:
a+=i
return a
price=abc()
pay=sum(price)
# print('消费'+str(pay)+'元')
abc()
def abc():
total = []
while True:
unit = input('请输入')
if unit == 'q':
break
else:
try:
unit=int(unit)
except:
print('整数!')
else:
total.append(unit)
finally:
print('-'*30)
return total
def sum(money):
a=0
for i in money:
a+=i
return a
price=abc()
pay=sum(price)
# print('消费'+str(pay)+'元')
abc()
def abc():
total = []
while True:
unit = input('请输入')
if unit == 'q':
break
else:
try:
unit=int(unit)
except:
print('整数!')
else:
total.append(unit)
finally:
print('-'*30)
return total
def sum(money):
a=0
for i in money:
a+=i
return a
price=abc()
pay=sum(price)
# print('消费'+str(pay)+'元')
abc()
def abc():
total = []
while True:
unit = input('请输入')
if unit == 'q':
break
else:
try:
unit=int(unit)
except:
print('整数!')
else:
total.append(unit)
finally:
print('-'*30)
return total
def sum(money):
a=0
for i in money:
a+=i
......
def abc():
total = []
while True:
unit = input("请输入")
if unit == 'q':
break
else:
try:
unit=int(unit)
except:
print('整数!')
else:
total.append(unit)
finally:
print('-'*30)
print(total)
return total
def sum(money):
count=0
for i in money:
count+=i
return count
# price=abc()
# pay=sum(price)
# print('消费'+str(pay)+'元')
import a
data=a.abc()
score=a.sam(abc)
score=a.sum(data)
print(str(score))
\ No newline at end of file
import asd
data=asd.abc()
score=asd.sum(data)
print(str(score))
\ No newline at end of file
import in
data=in.abc()
score=in.sum(data)
print(str(score))
\ No newline at end of file
heros=["1","2","3"]
for i in range len(heros):
print(i)
\ 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