[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fH2HXmY5vLnk020IIiRy26u6uB8g0qeo7WUSht4EJkfs":3},{"id":4,"source":5,"question":6,"options":7,"answer":12,"related":13,"type":24,"origin":108,"createTime":26},348503961,"v1","如果要去除字符串中头部的空格,可以使用字符串的( )方法",[8,9,10,11],"replace","strip","rstrip","lstrip",[],[14,27,37,47,57,67,75,84,88,98],{"id":15,"source":5,"question":16,"options":17,"answer":22,"related":23,"type":24,"origin":25,"createTime":26},348503954,"已知 s1=\"I \"am a student.\",s2='I \\'am a student',则 print(s1,s2)的输出结果为",[18,19,20,21],"I 'am a student. I 'am a student","I \"am a student. I 'am a student","I \"am a student. I \\'am a student","程序报错",[],[],0,null,"2026-04-23T06:31:40+08:00",{"id":28,"source":5,"question":29,"options":30,"answer":35,"related":36,"type":24,"origin":25,"createTime":26},348503955,"已知x='123'和y='456',表达式x+y的值为( )",[31,32,33,34],"123456","'123456'","'579'","579",[],[],{"id":38,"source":5,"question":39,"options":40,"answer":45,"related":46,"type":24,"origin":25,"createTime":26},348503956,"已知\"str='a**b*c*d'\",则\"str.split('*',2)\"的返回结果是( )",[41,42,43,44],"[\"a\",\"\",\"b\",\"c\",\"d\"]","[\"a\",\"b\",\"c\",\"d\"]","[\"a\",\"\",\"b*c*d\"]","[\"a\",\"b\",\"c*d\"]",[],[],{"id":48,"source":5,"question":49,"options":50,"answer":55,"related":56,"type":24,"origin":25,"createTime":26},348503957,"下列说法错误的是( )",[51,52,53,54],"find 方法是在指定检索范围中按照从左至右的顺序检索,找到子串第一次出现的位置","rfind 方法在指定检索范围中按照从右至左的顺序检索,找到子串第一次出现的位置","index 与 find 作用相同,rindex 与 rfind 作用相同,只是 find 和 rfind 在检索不到字符串时返回-1,而 index 和 rindex 会引发 ValueError 异常","index 与 find 作用相同,rindex 与 rfind 作用相同,只是 find 和 rfind 找到一个就返回,而 index 和 rindex 会检索到所有的子串",[],[],{"id":58,"source":5,"question":59,"options":60,"answer":65,"related":66,"type":24,"origin":25,"createTime":26},348503958,"print(len(\"中国\\\"china\"))的输出结果是( )",[61,62,63,64],"7","8","9","10",[],[],{"id":68,"source":5,"question":69,"options":70,"answer":73,"related":74,"type":24,"origin":25,"createTime":26},348503959,"已知\"str='a**b*c*d'\",则\"str.split('**',2)\"的返回结果是( )",[44,71,72,42],"[\"a\",\"b*c*d\"]","报错",[],[],{"id":76,"source":5,"question":77,"options":78,"answer":82,"related":83,"type":24,"origin":25,"createTime":26},348503960,"已知\"str='Python#C++##Python'\",则\"str.rfind('Python')\"返回的结果是( )",[79,80,81,72],"-1","12","0",[],[],{"id":4,"source":5,"question":6,"options":85,"answer":86,"related":87,"type":24,"origin":25,"createTime":26},[8,9,10,11],[],[],{"id":89,"source":5,"question":90,"options":91,"answer":96,"related":97,"type":24,"origin":25,"createTime":26},348503962,"如果要将字符串中的首字母大写、其他字母都小写,应使用字符串的( )方法",[92,93,94,95],"capitalize","upper","lower","swapcase",[],[],{"id":99,"source":5,"question":100,"options":101,"answer":106,"related":107,"type":24,"origin":25,"createTime":26},348503963,"下列关于 replace 方法 str.replace(old, new[, max])的说法错误的是( )",[102,103,104,105],"使用字符串中的 replace 方法可以将字符串中的指定子串替换成其他内容","str 是要做替换操作的字符串,old 和 new 分别是要替换的子串和替换成的字符串","max 是最多替换的子串数量,如果不指定 max 参数则只替换第一个满足条件的子串","replace 方法返回替换后的字符串",[],[],{"courseName":109,"courseImg":110,"workName":111,"workId":111,"count":24,"courseId":112},"医学人工智能","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fed5035af677406d22717e75b326fc825.png","","eb17eb8e2032520c49c269c7b061175e"]