重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 行业知识> 社会科学
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[主观题]

阅读以下程序,填写运行结果()。dic={('小明',18):['男',98], ('小红'

阅读以下程序,填写运行结果()。dic={('小明',18):['男',98], ('小红',19):['女',87], ('小玲',18):['女',91], ('小刚',20):['男',83]} for k,v in dic.items(): if v[1]>90: print(k[1],end='') #此处''为空字符串

答案
查看答案
更多“阅读以下程序,填写运行结果()。dic={('小明',18):['男',98], ('小红'”相关的问题

第1题

阅读以下程序,填写运行结果()。dic={'a':2,'b':1,'c':3} for i in dic
.keys(): print(i,end='')#此处''为空字符串

点击查看答案

第2题

阅读以下程序,填写运行结果()。dic={'apple':2, 'orange':5, 'pear':3
, 'banana':6, 'watermelon':1} n=0 for k,v in dic.items(): if v>=n: m=k n=v print(m)

点击查看答案

第3题

阅读以下程序,填写运行结果()。def f(n): s=str(n) result='' for i in range(0,len(s)

阅读以下程序,填写运行结果()。def f(n): s=str(n) result='' for i in range(0,len(s)): result=s[i]+result return result print(f(345))

点击查看答案

第4题

阅读以下程序,填写运行结果()。def f(m,n): s='' #此处''为空字符串 for i in

阅读以下程序,填写运行结果()。def f(m,n): s='' #此处''为空字符串 for i in range(m,n): s+=str(i) return s print(f(3,5)+f(1,4))

点击查看答案

第5题

阅读下面代码: 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); } } 请在程序中画线处填写正确的语句【 】,以便编译运行程序后得到正确的结果。

点击查看答案

第6题

阅读下面的程序,程序执行后,运行结果为()public class test {public static void main(String args[]) {int i; float f =2.3f; double d =2.7;i = ((int)Math.ceil(f)) * ((int)Math.round(d))System.out.println(i) }}

A.9

B.5

C.6

D.6.1

点击查看答案

第7题

函数fun的功能是:根据以下公式求p的值,结果由函数值返回。m与n为两个正数且要求m>n。 例

函数fun的功能是:根据以下公式求p的值,结果由函数值返回。m与n为两个正数且要求m>n。

例如:m=12,n=8时,运行结果应该是495.000000。请在题目的空白处填写适当的程序语句,将该程序补充完整。 include<conio.h> include<stdio.h) float fun(int m,int n) { int i; double p=1.0; for(i=1;i<=m;i++)【 】; for(i=1;i<=n;i++)【 】; for(i=1;i<=m-n;i++)p=p/i; return P;} main() { clrscr(); printf("p=%f\n",fun(12,8));}

点击查看答案

第8题

阅读以下程序,输出结果为_________。 class D{ public static void main (String args[

阅读以下程序,输出结果为_________。 class D{ public static void main (String args[]){ int d=21; Dec dec=new Dec(); dec. decrement (d): System.out.println(d); } } class Dec{ public void decrement(int decMe){ decMe=decMe-1: } }

点击查看答案

第9题

阅读以下程序,当输入数据的形式为:25,13,10<CR>,正确的输出结果为( )。 main() {int x,y,z; scanf("%d%d%d",&x,&y,&z); printf("x+y+z=%d\n",x+y+z); }

A.x+y+z=48

B.x+y+z=35

C.x+z=35

D.不确定

点击查看答案

第10题

阅读以下程序,输出结果为_______。 import java.iO.*; public class abc { p
ublic static void main(Stringargs[]) { String sl="Hello!"; String s2=new String("I like Java!"); System.out.println(s1+""+s2); }

点击查看答案

第11题

阅读以下程序,请写出输出结果_________ public class EqualsMethod{ public static vo
id main (String[]args){ Integer nl=new Integer (47): Integer n2=new Integer (47); System.out.println(n1.equals(n2)); }

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝