首页 > 大学本科
题目内容 (请给出正确答案)
[主观题]

阅读以下程序,填写运行结果()。 def f(m,n): if m%n==0: return 1 else: return 0 print(f(6,3))

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“阅读以下程序,填写运行结果()。 def f(m,n): i…”相关的问题
第1题
阅读以下程序,填写运行结果()。 def f(n): return n+1 print(f(f(2)+f(3)))

点击查看答案
第2题
阅读以下程序,填写运行结果()。def f(): m=0 m=m+1 print(m,end='') #此处''为空字符串 f() f()

点击查看答案
第3题
阅读以下程序,填写运行结果()。 dic={'a':2,'b':1,'c':3} print(max(d

阅读以下程序,填写运行结果()。 dic={'a':2,'b':1,'c':3} print(max(dic.values()))

点击查看答案
第4题
阅读以下程序,填写运行结果()。lst=[(1,3),(4,2),(6,8),(3,0)] lst.sort(key=lambda i:i[0]*i[

阅读以下程序,填写运行结果()。lst=[(1,3),(4,2),(6,8),(3,0)] lst.sort(key=lambda i:i[0]*i[1]) print(lst[-1])

点击查看答案
第5题
阅读以下程序,填写运行结果()。dic={'a':2,'b':1,'c':3} for i in dic
.items(): print(i[0]*i[1],end='')#此处''为空字符串

点击查看答案
第6题
阅读以下程序,填写运行结果()。dic={'apple':2, 'orange':5, 'pear':3
, 'banana':6, 'watermelon':1} s=0 for k,v in dic.items(): if v>3: s+=v print(s)

点击查看答案
第7题
运行以下程序,输出结果为()。lst1=['abc','def','ghi'] lst2=[i[::-1
] for i in lst1] print(lst2[1][2])

点击查看答案
第8题
阅读下面代码: import java.awt.*; public class Exam11_1 { private Frame.
f; private Button bl,b2,b3,b4; public static void main(String args[] { Exam11_1 that = new Exam11_1 (); that.go(); } public void go () { ______; f.setLayout(new FlowLayout());; bl = new Button ("Button 1"); b2 = new Button ("Button 2"); b3 = new Button ("Button 3"); b4 = new Button ("Button 4"); f.add(b1); f.add(b2); f.add(b3); f.add(b4); f.pack(); f.setVisible(true); } } 请在程序中画线处填写正确的语句【 】,以便编译运行程序后得到正确的结果。

点击查看答案
第9题
若有如下程序: include "stdio.h" main() { char s[30]; Strcpy(&S[0],"

若有如下程序: include "stdio.h" main() { char s[30]; Strcpy(&S[0],"adc"); Strcpy(&S[1],"def"); strcpy(&S[2],"gh");; printf("%S\n",s); 则程序运行后的输出结果是【 】。

点击查看答案
第10题
以下程序的运行结果一共有()行。 for i in range(1,10): for j in range(1,10): print("{}

以下程序的运行结果一共有()行。 for i in range(1,10): for j in range(1,10): print("{}*{}={}".format(i,j,i*j))

点击查看答案
第11题
运行以下程序,输出结果为()。lst1=[70,80,93,88,90] lst2=[i for i in lst1 if i>90] print(lst2)

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改