A、city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = enumerate(city, 1)print(orderⱣⱤcity)
B、city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = enumerate(city, 1)print(list(orderⱣⱤcity))
C、city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = zip(range(1, 5), city)print(orderⱣⱤcity)
D、city=['北京','上海','天津','重庆']orderⱣⱤcity=zip(range(1,5),city)print(list(orderⱣⱤcity))
答案:BD
A、city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = enumerate(city, 1)print(orderⱣⱤcity)
B、city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = enumerate(city, 1)print(list(orderⱣⱤcity))
C、city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = zip(range(1, 5), city)print(orderⱣⱤcity)
D、city=['北京','上海','天津','重庆']orderⱣⱤcity=zip(range(1,5),city)print(list(orderⱣⱤcity))
答案:BD
A. 匿名函数是一个没有名字的函数
B. 匿名函数可用作函数的参数
C. 应用匿名函数可使代码更简洁
D. 过多的应用匿名函数可能会使程序的可读性变差
A. [ 1 2 3 4 5 6 7 8 9 10]
B. [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
C. 1 2 3 4 5 6 7 8 9 10
D. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
A. 对
B. 错
A. 字符串s中x的序号
B. 字符串s中x的数量
C. 字符串x中s的数量
D. 字符串x中s的序号
A. B
B. A+B
C. A|B
D. A^B
A. [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.]
B. [ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.]
C. 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.
D. 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.
A. 对
B. 错
A. "abc"
B. 100
C. abc
D. 979899
解析:答案解析: