摘要:
python enumerate 用法 [Python俱乐部]python enumerate 用法python enumerate 用法 | 在for循环中得到计数参数为可遍历的变量,如 字符串,列表等; 返回值为enumerate类:import string
s = string.ascii_lowercase
e = enumerate(s)
print s
print list(e)输出... 阅读全文
posted @ 2012-03-02 21:59
lexus
阅读(4946)
评论(0)
推荐(2)
浙公网安备 33010602011771号