[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fUsFsHPkOnzntK7f-PTmKZMt5yH2eKWKdbs1FOthnB0I":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-11-28 16:30:01",244352299,[8,9,10,11],"print(str[0].upper()+str[1:])","print(str[1].upper()+str[-1:1])","print(str[0].upper()+str[1:-1])","print(str[1].upper()+str[2:])",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},14,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","a150597ab72547a69cce041c34c6d44e","第3章在线练习题目作业(不随机,24题)","设 str = 'python',想把字符串的第一个字母大写,其余字母仍是小写,正确的选项是",[21,32,41,50,53,62,71,80,89,98],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],244352296,[25,26,27,28],"可以使用 datatype() 测试字符串的类型","输出带有引号的字符串,可以使用转义字符\\","字符串是一个字符序列,字符串中的编号叫&quot;索引&quot;","字符串可以保存在变量中,也可以单独存在","关于 Python 字符串,以下选项中描述错误的是( )","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],244352297,[36,37,38,39],"字符串是字符的序列,可以按照单个字符或者字符片段进行索引","字符串包括两种序号体系:正向递增和反向递减","Python 字符串提供区间访问方式,采用 [N:M] 格式,表示字符串中从 N 到 M 的索引子字符串(包含 N 和 M)","字符串是用一对双引号&quot; &quot;或者单引号' '括起来的零个或者多个字符","以下关于 Python 字符串的描述中,错误的是( )",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],244352298,[45,46,47,48],"str.replace(x,y)方法把字符串str中全部的x子串都替换成y","想把一个字符串str全部的字符都大写,用str.upper()","想获取字符串str的长度,用字符串处理函数 str.len()","设 x = 'aa' ,则执行x*3的结果是'aaaaaa'","如下关于字符串类型的操做的描述,错误的是",{"answer":51,"createTime":5,"id":6,"options":52,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":54,"createTime":5,"id":55,"options":56,"question":61,"source":30,"type":31},[],244352300,[57,58,59,60],"&gt;&gt;&gt;print(name[:])全国计算机等级考试二级Python","&gt;&gt;&gt; print(name[11:])Python","&gt;&gt;&gt; print(name[:11])全国计算机等级考试二级","&gt;&gt;&gt; print(name[0], name[8], name[&ndash;1])全 试","若是name = &quot;全国计算机等级考试二级Python&quot;,如下选项中输出错误的是",{"answer":63,"createTime":5,"id":64,"options":65,"question":70,"source":30,"type":31},[],244352301,[66,67,68,69],"'PYTH'","'PYTHON'","' PYTHON'","'PYT'","下面结果正确的是s = 'PYTHON'&quot;{0:3}&quot;.format(s)",{"answer":72,"createTime":5,"id":73,"options":74,"question":79,"source":30,"type":31},[],244352302,[75,76,77,78],"thon语言程序","thon语言程序设","ython语言程序","ython语言程序设","下面代码的输出结果是name = &quot;Python语言程序设计&quot;print(name[2: &ndash;2])",{"answer":81,"createTime":5,"id":82,"options":83,"question":88,"source":30,"type":31},[],244352303,[84,85,86,87],"星期二","星期三","星期四","星期一","下面代码的输出结果是weekstr = &quot;星期一星期二星期三星期四星期五星期六星期日&quot;weekid = 3print(weekstr[weekid3: weekid3+3])",{"answer":90,"createTime":5,"id":91,"options":92,"question":97,"source":30,"type":31},[],244352304,[93,94,95,96],"print(TempStr[&ndash;5: &ndash;1])","print(TempStr[&ndash;5:0])","print(TempStr[&ndash;4: &ndash;1])print(TempStr[&ndash;4: &ndash;1])","print(TempStr[&ndash;5:])","给出以下代码:TempStr = &quot;Hello World&quot;如下选项中能够输出&quot;World&quot;子串的是",{"answer":99,"createTime":5,"id":100,"options":101,"question":106,"source":30,"type":31},[],244352305,[102,103,104,105],"the sky is blue","blue is sky the","sky is blue the","blue the sky is","s = &quot;the sky is blue&quot;,表达式 print(s[-4:], s[:-4]) 的结果是"]