面试题
# 1、下面代码的输出结果是什么? list1 = ['a', 'b', 'c', 'd', 'e'] print(list1[10:]) # [] # 2、各行打印的结果应该是多少? list1 = [ [ ] ] * 5 list1[0].append(10) print(list1) list1[1].append(20) print(list1) list1.append(30) print(list1) # 3、写一个函数: 查出字符串中每个单词的首字母在整个字符串的位置。把这些首字母的索引添加到result列表中,并返回给调用者。 names = 'Jack Eason Max'