Commit e71d654e by BellCodeEditor

save project

parent ef5bfc5b
Showing with 9 additions and 225 deletions
def new_input(): total = []
total = [] while True:
s=0 unit= input("请输入:")
while True: if unit== 'q':
unit= input("请输入:") break
if unit== 'q': else:
break total.append(unit)
else: print(total)
try: \ No newline at end of file
unit=int(unit)
except:
print("请输入数值")
else:
total.append(unit)
for i in total:
s=s+1
return s
print(total)
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