[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fuwnYH3yhATqejayR5LLX-NChT2MzEyuTu5nduuW3nRg":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":16,"related":17,"source":27,"type":28},[],"2026-04-15 20:05:29",341441210,[8,9,10,11],"if语句可以单独使用,可以没有else","if语句可以和else配对使用","if语句可以和多个elif语句一起使用","else语句可以单独使用,不需要if",{"courseId":13,"courseImg":14,"courseName":15},"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","下列关于条件判断结构的描述,错误的是( )",[18,29,32,41,50,59,68,77,86,95],{"answer":19,"createTime":5,"id":20,"options":21,"question":26,"source":27,"type":28},[],341441209,[22,23,24,25],"fractions = 61 if fractions &gt;60 : print(&quot;成绩合格&quot;) elif fractions &lt;=60 : print(&quot;成绩不合格&quot;)","fractions = 61 if fractions &gt;=60 : print(&quot;成绩合格&quot;) else fractions &lt; 60 : print(&quot;成绩不合格&quot;)","fractions = 61 if fractions &gt;=60 : print(&quot;成绩合格&quot;) else : print(&quot;成绩不合格&quot;)","fractions = 61 if fractions &gt;=60 : print(&quot;成绩合格&quot;) elif : print(&quot;成绩不合格&quot;)","初级会计考试分数60分以上(包含本数)就合格,否则就不合格,小王考试分数为61分,执行Python程序语句,实现此功能,下列语句正确的是( )","v1",0,{"answer":30,"createTime":5,"id":6,"options":31,"question":16,"source":27,"type":28},[],[8,9,10,11],{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":27,"type":28},[],341441211,[36,37,38,39],"B","C","D","A","下面程序的输出结果是( ). grage = 90 if grage&gt;=60: print(&quot;D&quot;) elif grage&gt;=70: print(&quot;C&quot;) elif grage&gt;=80: print(&quot;B&quot;) elif grage&gt;=90: print(&quot;A&quot;)",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":27,"type":28},[],341441212,[45,46,47,48],"username = input(&quot;请输入用户名:&quot;) password = input(&quot;请输入密码:&quot;) if username=='jxz' and password=='123456' : print(&quot;登录成功&quot;) elif : print(&quot;登录失败&quot;)","username = 'jxz' password = '123456' if username=='jxz' and password=='123456' : print(&quot;登录成功&quot;) else : print(&quot;登录失败&quot;)","username = input(&quot;请输入用户名:&quot;) password = input(&quot;请输入密码:&quot;) if username=='jxz' or password=='123456' : print(&quot;登录成功&quot;) else : print(&quot;登录失败&quot;)","username = input(&quot;请输入用户名:&quot;) password = input(&quot;请输入密码:&quot;) if username=='jxz' and password=='123456' : print(&quot;登录成功&quot;) else : print(&quot;登录失败&quot;)","实现用户输入用户名和密码,当用户名为jxz且密码为123456时,显示登录成功,否则显示登录失败,下列语句正确的是( )",{"answer":51,"createTime":5,"id":52,"options":53,"question":58,"source":27,"type":28},[],341441213,[54,55,56,57],"if (gender == &quot;男&quot; or age &lt; 40 or title == &quot;教授&quot;) : n += 1","if (gender == &quot;男&quot; or age &lt; 40 and title == &quot;教授&quot;) : n += 1","if (gender == &quot;男&quot; and age &lt; 40 or title == &quot;教授&quot;) : n += 1","if (gender == &quot;男&quot; and age &lt; 40 and title == &quot;教授&quot;) : n += 1","下列if语句统计满足&quot;性别(gender)为男、职称(title)为教授、年龄(age)小于40岁&quot;条件的人数(n),正确的语句为( )",{"answer":60,"createTime":5,"id":61,"options":62,"question":67,"source":27,"type":28},[],341441214,[63,64,65,66],"if嵌套语句","if&hellip;&hellip;elif","if&hellip;&hellip;else","if&hellip;&hellip;elif&hellip;&hellip;else","有时候某个判断是在另外一个判断成立的基础上进行的,这样的情况该选择的语句是( )",{"answer":69,"createTime":5,"id":70,"options":71,"question":76,"source":27,"type":28},[],341441215,[72,73,74,75],"x is 10","无输出","y is 20","z is 30","下面程序的输出结果是( ). x = 10 y = 20 if x&gt;10: if y&gt;20: z = x+y print(&quot;z is &quot; , z) else: print(&quot;x is &quot; , x)",{"answer":78,"createTime":5,"id":79,"options":80,"question":85,"source":27,"type":28},[],341441216,[81,82,83,84],"yes","False","no","True","下面程序的输出结果是( ). a = True b = False if a or b and a : print(&quot;yes&quot;) else : print(&quot;no&quot;)",{"answer":87,"createTime":5,"id":88,"options":89,"question":94,"source":27,"type":28},[],341441217,[90,91,92,93],"1","1500000","180000","18000","下面程序的输出结果是( ). profit = 1800000 if profit &gt; 1500000 : bonus = profit*0.1 else : bonus = 0 print(bonus)",{"answer":96,"createTime":5,"id":97,"options":98,"question":103,"source":27,"type":28},[],341441218,[99,100,101,102],"4","3","0","2","如果执行下面代码时,从键盘输入数字5,则输出结果是( ). n = int(input(&quot;请输入一个整数:&quot;)) s = 0 if n&gt;=5 : n -= 1 s = 4 if n&lt;5 : n -= 1 s = 3 print(s)"]