Commit 564ef817 by BellCodeEditor

save project

parent a1626e7a
Showing with 10 additions and 5 deletions
def hello(name):
content='你好!'+name
return content
result=hello('小依')
print(result)
\ No newline at end of file
...@@ -2,7 +2,7 @@ def new_input(): ...@@ -2,7 +2,7 @@ def new_input():
total=[] total=[]
while True: while True:
unit=input("请输入:") unit=input("请输入:")
z if unit=="q": if unit=="q":
break break
else: else:
try: try:
...@@ -11,7 +11,6 @@ def new_input(): ...@@ -11,7 +11,6 @@ def new_input():
print('请输入整数') print('请输入整数')
else: else:
total.append(int(unit)) total.append(int(unit))
print(total)
return total return total
new_input() a=new_input()
print(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