在for循环中得到计数 参数为可遍历的变量,如:字符串,列表等;返回值为enumerate类: import … 继续阅读Python enumerate 学习
标签: enumerate
获取字符串中数字1的位置
题目在哪看到的不记得了,就记下了个解决方法: #!/usr/bin/env python #coding=ut… 继续阅读获取字符串中数字1的位置
Read more, Write more, Think more, Know more.
在for循环中得到计数 参数为可遍历的变量,如:字符串,列表等;返回值为enumerate类: import … 继续阅读Python enumerate 学习
题目在哪看到的不记得了,就记下了个解决方法: #!/usr/bin/env python #coding=ut… 继续阅读获取字符串中数字1的位置