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():
total=[]
while True:
unit=input("请输入:")
z if unit=="q":
if unit=="q":
break
else:
try:
......@@ -11,7 +11,6 @@ def new_input():
print('请输入整数')
else:
total.append(int(unit))
print(total)
return total
new_input()
print(total)
\ No newline at end of file
a=new_input()
print(a)
\ 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