设有列表对象likes = ['David Bowie', 'Pink Floyd', 'Bob Dylan', 'Leonard Cohen'] 编程实现输出结果为: I love David Bowie, Pink Floyd, Bob Dylan and Leonard Cohen. [br][/br] 给出程序源码及运行测试截图。
举一反三
- Why the arbiters of the Nobel Prize awarded the prize to Bob Dylan A: Because Bob Dylan has a singular nature of his production. B: Because Bob Dylan’s best songs are more than others. C: Because Bob Dylan is obsessed with American old folks. D: Because Bob Dylan’s songs are mysterious and ambiguous.
- 下面代码的输出结果是<br/>s =["seashell","gold","pink","brown","purple","tomato"]<br/>print(s[4:])<br/>A<br/>['purple']<br/>B<br/>['purple', 'tomato']<br/>C<br/>['gold', 'pink', 'brown', 'purple', 'tomato']<br/>D<br/>['seashell', 'gold', 'pink', 'brown'] A: ['purple'] B: ['purple', 'tomato'] C: ['gold', 'pink', 'brown', 'purple', 'tomato'] D: ['seashell', 'gold', 'pink', 'brown']
- Bob Dylan received the following awards:
- Bob Dylan's songs are influenced by the poets of _____________ and the____________movement.
- 下面代码的输出结果是(<br/>)<br/>s =["seashell","gold","pink","brown","purple","tomato"]<br/>print(s[1:4:2]) A: ['gold',<br/>'pink', 'brown'] B: ['gold',<br/>'pink'] C: ['gold',<br/>'pink', 'brown', 'purple', 'tomato'] D: ['gold',<br/>'brown']