print("""
program 1.3
return begin!
but have new result Better than the lase one 1.2 version!
""")
# divisor numbers
a = 1
# totality numbers
total_num = 28
# Double result eventuate success! and that success show positive divisor
while total_num % a == 0 and total_num != a:
print("number is %2d and divisor is %2d " % (total_num, a))
a += 1
while total_num % a != 0:
a += 1
《python语言程序设计》第5章 第35题改良版1.3,解决了前一章的问题!!收获! 排名21297
于 2022-08-15 16:26:05 首次发布