# 编写Python程序实现素数处理的功能

<p style="margin-left:0cm; margin-right:0cm">编写Python程序实现素数处理的功能&#xff0c;要求如下&#xff1a;</p><p style="margin-left:0cm; margin-right:0cm">&#xff08;1&#xff09;从键盘输入一个整数X&#xff0c;编写一个函数Find&#xff08;x&#61;100&#xff09;&#xff0c;找出1—X之间的所有的素数&#xff08;即质数&#xff09;&#xff0c;并将这些素数按照升序存放在列表 prime_list []中。</p><p style="margin-left:0cm; margin-right:0cm">&#xff08;2&#xff09;在程序中编写一个函数delete_seven( prime_list)&#xff0c;将 prime_list []中个位含有7的素数删除&#xff1b;</p><p style="margin-left:0cm; margin-right:0cm"><strong>【程序要求&#xff1a;】</strong></p><p style="margin-left:0cm; margin-right:0cm">&#xff08;1&#xff09;有引导用户键盘输入的提示信息&#xff0c;言语要恰当&#xff1b;</p><p style="margin-left:0cm; margin-right:0cm">&#xff08;2&#xff09;函数Find&#xff08;x&#61;100&#xff09;实现要正确&#xff0c;实现列表 prime_list []中查询到的素数的输出&#xff1b;</p><p style="margin-left:0cm; margin-right:0cm">&#xff08;3&#xff09;函数delete_seven( prime_list)实现正确&#xff0c;输出删除指定素数后的相关数据信息。</p>

## template

```python
def find(x=100):
	pl = []
	for m in range(2,x+1):
		for k in pl:
			if m % k == 0:
				break
		else:
			pl.append(m)
	return pl
def delete_seven(pl):
	return [x for x in pl if x%10!=7]
x = int(input('输入一个整数:'))
prime_list = find(x)
print(prime_list)
print(delete_seven(prime_list))
```

## 答案

```python

```

## 选项

### A

```python

```

### B

```python

```

### C

```python

```