Appearance
将值转换为字符串
from usepy import to_string
value
str
>>> to_string(123) '123' >>> to_string([1, 2, 3]) '1, 2, 3' >>> to_string({"a": 1, "b": 2}) 'a: 1, b: 2' >>> to_string(None) ''