Commit d4d82a7b by BellCodeEditor

save project

parent 43f90fa9
Showing with 5 additions and 2 deletions
...@@ -4,7 +4,7 @@ def new_input(): ...@@ -4,7 +4,7 @@ def new_input():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
str(unit) #str(unit)
if unit== 'q': if unit== 'q':
break break
else: else:
...@@ -13,5 +13,7 @@ def new_input(): ...@@ -13,5 +13,7 @@ def new_input():
print("请输入字符串") print("请输入字符串")
else: else:
print(total) print(total)
new_input() return total
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