执行结果最后总是带一行None,求指教
def get(n): i = 2 for i in range(2,n): j = 2 for j in range(2,i): if i % j == 0: break else: print(i) print(get(5))
执行结果最后总是带一行None,求指教
def get(n): i = 2 for i in range(2,n): j = 2 for j in range(2,i): if i % j == 0: break else: print(i) print(get(5))
执行结果最后总是带一行None,求指教
2019-09-06
举报