y = map(int, '123')print(y)为什么这样写 输出为空白啊
然后这样写就可以输出[1,2,3]y = map(int, '123')print(list(y))
收起
因为map对象是无法直接进行打印的,必须转换为可以打印的类型,才会输出
报告相同问题?