Commit 9199ff0d by BellCodeEditor

save project

parent 362ed86e
Showing with 13 additions and 3 deletions
def wer(): def wer():
total = [] total = []
while True: while True:
print("输入caijia,或uze退出")
unit= input("请输入:") unit= input("请输入:")
if unit== '': if unit== 'uze':
break break
else: else:
total.append(unit) try:
a=int(unit)
except:
print("输入数字,或uze退出")
else:
total.append(a)
print("D"*8)
print(total) print(total)
wer() wer()
\ 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