a=87 i=a//2 while i>0:if a%i==0:break i-=1 print(i)
初始化i = 87//2,整除,i=43;然后while循环,如果i是a的因子,跳出循环,直接打印i;区间(0,43],从43往下数,87的第一个1因子是29,故break,打印i;望采纳