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 = [] def new_input():
while True: total=[]
unit=input("请输入:") while True:
if unit== 'q': try:
unit= break unit=int(input("请输入:"))
else: except
print("输入错误:")
else:
if unit=='q':
break
else:
total.append(unit) total.append(unit)
print(total) print(total)
\ 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