下面代码的输出结果是 list1=[i*2 for i in ’Python’] print(list1)

admin2019-09-02  32

问题 下面代码的输出结果是
list1=[i*2 for i in ’Python’]
print(list1)

选项 A、[’PP’,’yy’,’tt’,’hh’,’oo’,’nn’]
B、[2,4,6,8,10,12]
C、错误
D、Python Python

答案A

解析
转载请注明原文地址:https://kaotiyun.com/show/R36p777K
0

随机试题
最新回复(0)