Commit 12338a1f by BellCodeEditor

save project

parent 42f661fc
Showing with 18 additions and 8 deletions
for i in range(2,101,1):
for j in range(2,i):
if i%j==0:
print(i)
break
\ No newline at end of file
total = []
while True:
unit=input("请输入:")
if unit== 'q':
unit= break
else:
def new_input():
total=[]
while True:
try:
unit=int(input("请输入:"))
except
print("输入错误:")
else:
if unit=='q':
break
else:
total.append(unit)
print(total)
\ No newline at end of file
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