1.enumerate用法

#enumerate()函数用于将一个可遍历的数据对象(如列表、元组、字符串等)组合为一个索引序列,同时列出数据和数据下标,一般用在for循环中。

python enumerate format join

2. map中lambda用法

3.fromat格式化输出用法

基本语法是通过 {} 和 : 来代替以前的 % 。

python enumerate format join

同样也可以设置各种参数

参考:http://www.runoob.com/python/att-string-format.html

4. join用法

python enumerate format join

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-04-13
  • 2021-12-08
  • 2021-08-23
  • 2021-12-10
  • 2022-02-17
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案