2019年7月11日

python中,map()对象,只能循环遍历一轮,之后为空的原因

摘要: 学习python,按照之前编程的思路,写了如下代码 A_object = map(str,range(3)) A_list = list(A_object) B_list = list(A_object) 观察A_list,其值为 ['1','2','3'] 观察B_list,其值为 [] 也就是说 阅读全文

posted @ 2019-07-11 16:48 noox 阅读(2460) 评论(1) 推荐(1) 编辑

导航