Commit d4d82a7b by BellCodeEditor

save project

parent 43f90fa9
Showing with 7 additions and 5 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:
...@@ -12,6 +12,8 @@ def new_input(): ...@@ -12,6 +12,8 @@ def new_input():
except: except:
print("请输入字符串") print("请输入字符串")
else: else:
print(total) print(total)
new_input() return 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