# 找出素数对 任意输入一个大于10的偶数,编程找出所有和等于该偶数的素数对 以下程序实现了这一功能,请你填补空白处内容: ```python h = 0 def a(h): x = 0 for j in range(2, h): if h % j == 0: x = 1 break if x == 0: return 1 n = int(input("输入任意大于10的偶数:")) for i in range(n,n+1): h = 0 if i % 2 == 0: for k in range(2, i): if a(k) == 1 and a(i - k) == 1: ________________; ``` ## template ```python h = 0 def a(h): x = 0 for j in range(2, h): if h % j == 0: x = 1 break if x == 0: return 1 n = int(input("输入任意大于10的偶数:")) for i in range(n,n+1): h = 0 if i % 2 == 0: for k in range(2, i): if a(k) == 1 and a(i - k) == 1: h = 1 if h == 0: print("%d can't" % i) break else: print("%d=%d+%d" % (i, k, i - k)) break ``` ## 答案 ```python h = 1 if h == 0: print("%d can't" % i) break else: print("%d=%d+%d" % (i, k, i - k)) break ``` ## 选项 ### A ```python h = 1 if h == 1: print("%d can't" % i) break else: print("%d=%d+%d" % (i, k, i - k)) break ``` ### B ```python h = 1 if h == 1: print("%d can't" % i) continue else: print("%d=%d+%d" % (i, k, i - k)) continue ``` ### C ```python h = 1 if h == 0: print("%d can't" % i) continue else: print("%d=%d+%d" % (i, k, i - k)) continue ```