首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
给出如下代码: s=’Python iS beautiful!’ 可以输出“python”的是
给出如下代码: s=’Python iS beautiful!’ 可以输出“python”的是
admin
2019-09-02
18
问题
给出如下代码:
s=’Python iS beautiful!’
可以输出“python”的是
选项
A、print(s[0:7])
B、print(s[0:7].lower())
C、print(s[一21:一14].lower)
D、print(s[:一14])
答案
B
解析
转载请注明原文地址:https://kaotiyun.com/show/MA6p777K
本试题收录于:
二级Python题库NCRE全国计算机二级分类
0
二级Python
NCRE全国计算机二级
相关试题推荐
在数据库表设计器的“字段”选项卡中,字段有效性的设置项中不包括()。
下列叙述中正确的是()。
在使用查询设计器创建查询时,为了指定在查询结果中是否包含重复记录(对应于DISTINCT),应该使用的选项卡是()。
查询成绩在70分至85分之间学生的学号、课程号和成绩,正确的SQL语句是()。
在VisualFoxPro中调用表单文件mf1的正确命令是()。
打开考生文件夹下的SDB数据库,完成如下综合应用:创建一个标题名为“查询”、文件名为testb的表单,如下图所示。表单要求如下:(1)为表单建立数据环境,并向数据环境中添加“学生表”。(2)表单启动后自动居中。
下面程序的运行结果是()。SETTALKOFFDECLAREd(2,3)FORi=1TO2FORj=1TO3d(i,j)=i+jENDFORENDFOR
假设有一表单,其中包含一个选项按钮组,在表单运行启动时,最后触发的事件是()。
“教师表”中有“职工号”、“姓名”、“工龄”和“系号”等字段,“学院表”中有“系名”和“系号”等字段,计算“计算机”系教师总数的命令是()。
“教师表”中有“职工号”、“姓名”、“工龄”和“系号”等字段,“学院表”中有“系名”和“系号”等字段,求教师总数最多的系的教师人数,正确的命令序列是
随机试题
决策艺术的要点有()
丧偶儿媳对公婆或丧偶女婿对岳父母尽了主要赡养义务的,作为第一顺序继承人。()
I级肌力Ⅲ级肌力
患儿跌伤,X线摄片为左肱骨下端骨骺分离。3周后到市医院就诊,接诊医生填X线申请单时将左写成右,放射科发现错后,拍了左手,却将一个"右"字铅号贴在X线片上。入院后主治医师在主诉中写左,诊断上又写右,手术通知单上也写右。术前备皮时,病儿提到左臂受伤,护士仍在右
将经过淬火的工件加热到一定温度,保持一定时间,随后用适当的方式冷却,以获得所需的组织结构和性能。这种热处理过程称为( )。
当发现所检验的商品不合格时,检验检疫机构不必出具任何证书。( )
某投资者以2200元/吨卖出5月大豆期货合约一张,同时以2050元/吨买入7月大豆合约一张,当5月合约和7月合约价差为()元时,该投资人获利。
Somepessimisticexpertsfeelthattheautomobileisboundtofallintodisuse.Theyseeadayinthenot-mo-distantfuturewhen
HowtoapproachReadingTestPartThree•InthispartoftheReadingTestyoureadalongertextandanswersixquestions.•Fi
A、Itgetsdirty.B、Itgetsold.C、Itistoorepetitive.D、Itismentallytiring.A本题考查人物观点。由句(4)可知,女士认为如果每天都穿校服的话,校服会变得很旧,而且日复一日
最新回复
(
0
)