摘要:
#列表的坑之一 list1 = ['python','java','php','c','c++','c#','ruby'] #将索引为奇数的元素删除 ['java','c','c#'] list2 = [] for item in list1: if list1.index(item) % 2 != 1: list2.pop(list1.index(item)) prin... 阅读全文
posted @ 2018-10-03 13:56
巫小诗
阅读(225)
评论(0)
推荐(0)
摘要:
一,元组的声明和赋值 二,元组与列表的转换 三,字符串转数组 四,总结 阅读全文
posted @ 2018-10-03 13:55
巫小诗
阅读(121)
评论(0)
推荐(0)

浙公网安备 33010602011771号