Commit 76eb1922 by BellCodeEditor

save project

parent 089071cb
...@@ -6,14 +6,14 @@ def new_input(): ...@@ -6,14 +6,14 @@ def new_input():
break break
else: else:
try: try:
money.int(money) money=int(money)
except: except:
print("吼吼吼") print("错啦")
else: else:
total.append(money) total.append(money)
return total return total
def abc(list1): def abc(list1):
cont=0 count=0
for i in range(list1): for i in range(list1):
count += i count += i
return count return count
......
import diy import func
list1=diy.new_input() list1=func.new_input()
xyz xyz=func.abc(list1)
print(xyz) print(xyz)
\ 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