把对象转换为字符串("给人看的"形式)。
object
字符串
print(str(42) + "!") print(str(3.0), str([1, 2]), str(None))
42! 3.0 [1, 2] None