1. 使用空字符串 `""` 或 `''`:
str_value = ""
str_value = ''
2. 使用三引号创建多行空字符串:
str_value = """
"""
3. 使用 `str()` 函数将 `None` 转换为空字符串:
str_value = str(None)
4. 使用 `format()` 方法插入 `None` 到字符串中:
str_value = "Hello, {}".format(None)
5. 使用 `string.Template` 模块创建模板并替换 `None`:
from string import Template
template = Template("Hello, $name!")
str_value = template.substitute(name=None)
以上方法都可以用来创建空字符串