新手问题:是否可以在 Python 中将 NoneType 值转换为字符串?
def convert_string(value):
new_value = str(value)
return new_value
convert_string(value)
Traceback (most recent call last):
File "<string>", line 1, in <fragment>
NameError: name 'value' is not defined
提前致谢!