Commit 851a7c68 by BellCodeEditor

save project

parent a2ad0c04
Showing with 6 additions and 14 deletions
def result(): import sdfasfd
x=int(input("x")) sdfasfd.new_input()
y=int(input("y")) \ No newline at end of file
print("return前")
a=x+y
return(a)
b=x*y
print("return后")
a = result()
print(a)
\ No newline at end of file
...@@ -8,9 +8,9 @@ def new_input(): ...@@ -8,9 +8,9 @@ def new_input():
break break
unit_int=int(unit) unit_int=int(unit)
except: except:
print("输入错误请重输" print("输入错误请重输")
else: else:
total.append(unit_int) total.append(unit_int)
for i in total: for i in total:
a=a+i a=a+i
return(new_input()) #return(new_input())
\ 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