1. 使用`str.replace()`方法:
```python
new_string = string.replace(character1, '').replace(character2, '')
2. 使用`str.translate()`方法:
```python
import string
new_string = string.translate(string.maketrans('', '', characters_to_remove))
3. 使用正则表达式`re.sub()`函数:
```python
import re
new_string = re.sub(pattern, '', string, count=0, flags=0)
4. 使用`str.strip()`, `str.lstrip()`, `str.rstrip()`方法去除字符串两端的字符:
```python
new_string = string.strip(chars)
new_string = string.lstrip(chars)
new_string = string.rstrip(chars)
5. 使用`str.join()`方法结合`isalpha()`, `isnumeric()`等内置方法:
```python
new_string = ''.join(c for c in string if c.isalpha() or c.isnumeric())
请根据具体需求选择合适的方法。