首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面代码的输出结果是 list1=[i*2 for i in ’Python’] print(list1)
下面代码的输出结果是 list1=[i*2 for i in ’Python’] print(list1)
admin
2019-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
本试题收录于:
二级Python题库NCRE全国计算机二级分类
0
二级Python
NCRE全国计算机二级
相关试题推荐
对建立良好的程序设计风格,下面描述正确的是(.)。
在考生文件夹下完成下列简单应用:1.修改并执行程序four.prg,该程序的功能是:根据“学院表”和“教师表”计算“信息管理”系教师的平均工资。注意:只能修改标有错误的语句行,不能修改其他语句。2.在College数据库中使用视图设计器建立一个
(1)在考生文件夹下创建一个名为mymenu.mnx的下拉式菜单,运行该菜单程序时会在当前VisualFoxPro系统菜单的末尾追加一个“考试”子菜单,如下图所示。“统计”和“返回”菜单命令的功能都通过执行“过程”完成。菜单命令“统计”
1.建立一个表单文件myform,将employee表添加到表单的数据环境中,然后在表单中添加表格控件grid1,指定其记录源类型为“别名”、记录源为employee表文件,最后添加一个“退出”命令按钮控件Command1,程序运行时单击该命令按钮将关闭表
在VisualFoxPro中,下面描述正确的是
下面关于过程调用的陈述中,哪个是正确的
下面对视图的描述中错误的是
在VisualFoxPro中,下面的描述中正确是
随机试题
A、Thesurfaceoftheearthismadeupby12hugeplates.B、Thesurfaceisthemostimportantpartoftheearth.C、Wecannowtel
普希金作品中成功地塑造了农民起义领袖普加乔夫的形象的是()
患儿男,8岁,额部多发性疖肿,不慎碰伤额部,致使局部红肿扩大,弛张性高热,4天后臀部皮下又发现一肿块,疼痛、压痛明显,且有波动感。诊断应考虑
小儿单纯性肥胖症最多见的发病原因是
某县政府以较低补偿标准进行征地拆迁。张某因不同意该补偿标准,拒不拆迁自己的房屋。为此,县政府责令张某的儿子所在中学不为其办理新学期注册手续,并通知财政局解除张某的女婿李某(财政局工勤人员)与该局的劳动合同。张某最终被迫签署了拆迁协议。关于当事人被侵犯的权利
在住宅区内的道路上禁止货车通行,可以减少噪声、汽车尾气污染和行人行走的不安全感,房地产价格会()。
某造船公司以正在建造中的大型客轮设定抵押向银行贷款,但未办理抵押登记,根据《物权法》规定,下列说法正确的是()。
下列各项中,属于“可靠性”原则要求的有()。
A公司2016年12月31日购入价值200万元的设备,预计使用年限为5年,无残值,采用年限平均法计提折旧,税法允许采用双倍余额递减法计提折旧。A公司适用的所得税税率为25%。2017年12月31日递延所得税负债余额为()万元。
按照加涅的学习层次分类的观点.学生将“猫”、“狗”、“鼠”等概括为“动物”的学习属于()。
最新回复
(
0
)