Commit 11e445fa by BellCodeEditor

save project

parent 4ba2308e
Showing with 7 additions and 3 deletions
def new_input(): def new_inpot():
total=[] total=[]
while True: while True:
a=input("请输入:") a=input("请输入:")
...@@ -11,7 +11,11 @@ def new_input(): ...@@ -11,7 +11,11 @@ def new_input():
print("请输入新的数字:") print("请输入新的数字:")
else: else:
total.append(unit) total.append(unit)
return total
result=new_inpot()
print(result)
total.append(a) total.append(a)
print(total) print(total)
new_input() new_inpot()
\ 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