摘要:
# -*- coding: utf-8 -*- """ Created on Tue Mar 5 22:28:59 2019 @author: fengs """ """ 测试题: 0. 下边的列表分片操作会打印什么内容? >>> list1 = [1, 3, 2, 9, 7, 8] >>> list1[2:5] 打印: [2,9,7] 1. 请问 list1[... 阅读全文
摘要:
# -*- coding: utf-8 -*- """ Created on Tue Mar 5 00:11:43 2019 @author: fengs """ """ 测试题: 0. 列表都可以存放一些什么东西? 各种基础数据类型,字符串,列表等等 1. 向列表增加元素有哪些方法? append insert extend 2. ap... 阅读全文
摘要:
# -*- coding: utf-8 -*- """ Created on Mon Mar 4 23:47:51 2019 @author: fengs """ """ 测试题: 0. 下面的循环会打印多少次"I Love FishC"? for i in range(0, 10, 2): print('I Love FishC') 0 2 4 6 8 ... 阅读全文