[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fQ3NTfkQykKHV-KsAP7t53Kj3haGZm0AP-znjKQdj0So":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":11,"question":18,"related":19,"source":29,"type":30},[],"2024-01-11 16:26:47",130471654,[8,9,10,8],"7","6","TypeError 出错",{"count":12,"courseId":13,"courseImg":14,"courseName":15,"workId":16,"workName":17},20,"dca70b8b8a4db2436e0ee580d43f4f3a","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F59d71c300dff6ba7fa49e1ad37a4ae2d.jpg","计算机程序设计语言(Python)","work_30799794","第四章课后作业","以下程序的输出结果是: for num in range(1,4): sum *= num print(sum)",[20,31,40,49,58,67,74,83,86,95],{"answer":21,"createTime":5,"id":22,"options":23,"question":28,"source":29,"type":30},[],130471626,[24,25,26,27],"计数:1","计数:0","计数:0 计数:1","出错","下面代码的输出结果是 s = 0 while(s&lt;=1): print('计数:',s) s = s + 1","v1",0,{"answer":32,"createTime":5,"id":33,"options":34,"question":39,"source":29,"type":30},[],130471632,[35,36,37,38],"分支结构可以向已经执行过的语句部分跳转","Python中if-elif-else语句描述多分支结构","分支结构使用if保留字","Python中if-else语句用来形成二分支结构","关于Python的分支结构,以下选项中描述错误的是",{"answer":41,"createTime":5,"id":42,"options":43,"question":48,"source":29,"type":30},[],130471638,[44,45,46,47],"2","3","1","请输入q退出","执行以下程序,依次输入q、p,输出结果是: k = 0 while True: s = input('请输入q退出:') if s == 'q': k += 1 continue else: k += 2 break print(k)",{"answer":50,"createTime":5,"id":51,"options":52,"question":57,"source":29,"type":30},[],130471641,[53,54,55,56],"Python通过for、while等保留字提供遍历循环和无限循环结构","遍历循环中的遍历结构可以是字符串、文件、组合数据类型和range()函数等","break用来跳出最内层for或者while循环,脱离该循环后程序从循环代码后继续执行","每个continue语句只有能力跳出当前层次的循环","关于Python循环结构,以下选项中描述错误的是",{"answer":59,"createTime":5,"id":60,"options":61,"question":66,"source":29,"type":30},[],130471646,[62,63,64,65],"CCHHIIAA","CCHHIINAA","CCHHIAA","CCHHIINNAA","以下程序的输出结果是: for i in &quot;CHINA&quot;: for k in range(2): print(i, end=&quot;&quot;) if i == 'N': break",{"answer":68,"createTime":5,"id":69,"options":70,"question":73,"source":29,"type":30},[],130471648,[71,72,72,71],"torch soap bath","torch,soap,bath","下面代码的输出结果是 for a in [&quot;torch&quot;,&quot;soap&quot;,&quot;bath&quot;]: print(a)",{"answer":75,"createTime":5,"id":76,"options":77,"question":82,"source":29,"type":30},[],130471651,[78,79,80,81],"Helloorld","World","HelloWorld","Hello","下面代码的输出结果是 for s in &quot;HelloWorld&quot;: if s==&quot;W&quot;: break print(s,end=&quot;&quot;)",{"answer":84,"createTime":5,"id":6,"options":85,"question":18,"source":29,"type":30},[],[8,9,10,8],{"answer":87,"createTime":5,"id":88,"options":89,"question":94,"source":29,"type":30},[],130471658,[90,91,92,93],"多分支结构用于设置多个判断条件以及对应的多条执行路径","二分支结构有一种紧凑形式,使用保留字if和elif实现","if 语句中语句块执行与否依赖于条件判断","if 语句中条件部分可以使用任何能够产生True和False的语句和函数","关于分支结构,以下选项中描述不正确的是",{"answer":96,"createTime":5,"id":97,"options":98,"question":103,"source":29,"type":30},[],130471664,[99,100,101,102],"缩进","引号","冒号","大括号","用来判断当前Python语句在分支结构中的是"]