标签:microsoft load 表示 span lazy mil div image sof
nums = []
lst = [i for i in range(101)]
l = []
for j in range(2,101):
# 将质数加入到 l 中
temp = 1
for i in range(2,j-1):
if lst[j] % i == 0:
temp = 0
if temp != 0:
l.append(lst[j])
while True:
num = int(input("输入 0 表示终止"))
if num == 0:
# 输入为 0 退出循环
break
nums.append(num)
for c in nums:
if c % 2 == 0:
# 如果为偶数
for i in l:
# l 是质数的集合
if c - i in l:
print("{}={}+{}".format(c, i, c - i))
break
else:
print("{0} is odd number!".format(c))
2020-06-07
标签:microsoft load 表示 span lazy mil div image sof
原文地址:https://www.cnblogs.com/hany-postq473111315/p/13059922.html