摘要:
#!/usr/bin/env python#_*_ coding:utf-8 _*_product_list = [ ('Iphone',5800), ('Mac Pro',9800), ('Bike',800), ('Watch',10600), ('Coffe',31), ('Jack Pyth
阅读全文
posted @ 2018-04-09 14:56
qjlxqh
阅读(110)
推荐(0)
编辑
摘要:
#!/usr/bin/env python#-*- coding:utf-8 -*-names = ['Jack','Tom','mary','keli']print(names[1],names[3]) #切片,取第一和第三个值print(names[1:3]) #取中间值,顾头不顾尾print(
阅读全文
posted @ 2018-04-09 11:22
qjlxqh
阅读(80)
推荐(0)
编辑