标签:log class 结果 pytho val enumerate style 例子 apple
host_list=[] netip=‘192.168.1‘ for hostip in range(1,254): ip = netip +str(hostip) host_list.append(ip) hostlist
shoplist = [apple,mango] for index,value in enumerate(shoplist): print index,value 结果 0 apple 1 mango
标签:log class 结果 pytho val enumerate style 例子 apple
原文地址:http://www.cnblogs.com/guxiaobei/p/7739743.html