首页 > 建筑工程类考试> 公路工程试验检测员
题目内容 (请给出正确答案)
[主观题]

以下程序的运行结果一共有()行。 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))

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
更多“以下程序的运行结果一共有()行。 for i in rang…”相关的问题
第1题
阅读以下程序,分析运行结果中的第五行内容为()。dic={'小明':90, '小红':87,
'小玲':95, '小风':88, '小秋':100} for i in dic.items(): print(i[1]%10)

点击查看答案
第2题
阅读以下程序,填写运行结果()。dic={'a':[1,2,2,3],'b':[1,4,5,6,2],'c

阅读以下程序,填写运行结果()。dic={'a':[1,2,2,3],'b':[1,4,5,6,2],'c':[3,7,8,9]} for k,v in dic.items(): if v.count(2)==1: print(k)

点击查看答案
第3题
写出以下程序的运行结果。#include int fun(int a){int b=0;static int c=3;b ; c ;return(a
写出以下程序的运行结果。#include int fun(int a){int b=0;static int c=3;b ; c ;return(a

写出以下程序的运行结果。

#include int fun(int a){int b=0;static int c=3;b ; c ;return(a b c);}

main(){int i, a=5;for (i=0; i<3; i )cout<< i<< " "<< fun(a)<< " ";}

点击查看答案
第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题
运行以下程序,输出结果为()。lst=[1,2,3,4,5] for i in lst: i*=2 print(lst[3])

点击查看答案
第6题
阅读以下程序,给出运行结果。publicclassCase{publicstaticvoidmain(Stringargs[]){floatx=11;f

阅读以下程序,给出运行结果。

publicclassCase{

publicstaticvoidmain(Stringargs[]){

floatx=11;

floaty=4;

intz=(int)(x%y);

switch(z){

case1:

x=x+1;

case2:

x=x+2;

default:

x=x+3;

}

System.out.println(“Valueofxis:”+x);

}

}

运行结果是:

点击查看答案
第7题
运行以下程序,输出结果为()。lst=[1,2,3,4,5] s='' for i in lst: s=str(i)+s print(s)

点击查看答案
第8题
阅读以下程序,填写运行结果()。 def f(m): return m*2 print(f(1)*f('1'))

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

点击查看答案
第10题
运行以下程序,输出结果为()。lst1=['a','b','c','d','e
'] lst2=[i.upper()+'1' for i in lst1] print(lst2[2])

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