Commit 0aa72203 by BellCodeEditor

save project

parent f809aeca
Showing with 11 additions and 4 deletions
try:
age=int(input('几岁?'))
except:
print('请输入整数')
print('stop')
\ No newline at end of file
...@@ -4,6 +4,7 @@ def bus(): ...@@ -4,6 +4,7 @@ def bus():
unit= input("请输入:") unit= input("请输入:")
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
\ No newline at end of file bus()
\ 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