Commit 3a5c01b0 by BellCodeEditor

auto save

parent 24a661ac
Showing with 11 additions and 8 deletions
unit=0 unit=0
def A(): i=0
def A(qw):
total = [] total = []
while True: while True:
unit=inpu= 'q': unit=input("请输入:")
breat("请输入:") if unit=='q':
if unit=k break
else: else:
try: try:
unit=int(unit) unit=int(unit)
...@@ -12,7 +13,9 @@ def A(): ...@@ -12,7 +13,9 @@ def A():
print("请输入整数") print("请输入整数")
else: else:
total.append(unit) total.append(unit)
for q in qw:
i+=q
return i
return total return total
qwe=to
a=A() A(total)
print(a) \ No newline at end of file
\ 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