📜  将方法转换为 str python 代码示例

📅  最后修改于: 2022-03-11 14:45:31.496000             🧑  作者: Mango

代码示例1
>> dct = {1:3, 2:1}
>> len(str(dct))
12
>> print(str(dct))
{1: 31, 2: 0}
>> l = ["all","colours"]
>> len(str(l))
18