摘要: 数字列表切换为字符串列表 1. 1 ls = [1,2,3,4,5] 2 3 list1 = [str(x) for x in ls] 2. 1 list2 = list(map(str,ls)) 字符串列表切换为数字列表 1. 1 list11 = [int(x) for x in list1] 阅读全文
posted @ 2022-09-19 17:13 Geek_Arking 阅读(49) 评论(0) 推荐(0) 编辑