string

string

> 函数列表

将值 value 转换为字符串。

参数
返回值
Python

在 Python 中,str() 是语言原生的转换方式:

示例

string(12345) // "12345" string([1, 2, 3]) // "[1, 2, 3]" string("hello") // "hello" string(2 > 1) // "true"

另请参阅
同义词