cuishuohao

  • 首页
  • 关于
  • 分类
  • 归档
  • 搜索
  • 文章目录
  • 站点概览
  1. 1. 动画学会Python中的map函数
  2. 2. 实例
cuishuohao

cuishuohao

65 日志
12 分类
0%

python的map函数

发表于 2024-05-15 阅读次数: 本文字数: 93 阅读时长 ≈ 1 分钟
简介:python的map函数

动画学会Python中的map函数

实例

把int按位转换为list

1
2
3
4
n = 123456
lst = map(int, str(n))
print(list(lst))
# [1, 2, 3, 4, 5, 6]
【蓝桥杯】codeforce_1272B.Snow Walking Robot
【蓝桥杯】整数变换
© 2022 – 2024 cuishuohao
站点总字数: 65k 站点阅读时长 ≈ 59 分钟