Commit a7d82d1c by BellCodeEditor

save project

parent 4aefb621
Showing with 2 additions and 5 deletions
......@@ -3,14 +3,12 @@ def abcd():
while True:
unit= input("请输入:")
try:
int(unit)
unit=int(unit)
except:
print("填整数")
else:
print("mc")
total.append(unit)
if unit== 'q':
break
else:
total.append(unit)
print(total)
abcd()
\ 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