首页 > 继续教育
题目内容 (请给出正确答案)
[主观题]

请写出下面程序的输出结果。def GetList():return [1,2,3]def GetElements():return 1,2,3print(GetList())print(GetElements())

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“请写出下面程序的输出结果。def GetList(): re…”相关的问题
第1题
写出下面程序的运行结果。(1)如果输入4,则输出()(2)如果输入5,则输出()

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

写出下面程序的运行结果。(1)如果输入4,则输出()(2)如果输入5,则输出()写出下面程序的运行结

(1)如果输入4,则输出()

(2)如果输入5,则输出()

点击查看答案
第2题
写出下面代码的执行结果。

print("Hello, World!");

def createList():

list = []

for i in range(5):

list.append(i)

return list

list=createList()

print(list)

点击查看答案
第3题
阅读下面的程序:def func():print(x)x=100func()执行上述语句后,输出的结果为()。

A. 0

B.100

C.程序出现异常

D.程序编译失败

点击查看答案
第4题
写出下面程序的输出结果()#includeint main(){int x=6,y,z;x*=18+1;printf("%d,",x--);x+=y=z=11;printf("%d",x);return 0;}

A.114,124

B.109,116

C.113,124

D.110,116

点击查看答案
第5题
下面代码输出结果为()def greetPerson(*name): print('Hello', name)greetPerson('Runoob', 'Google')

A.Hello Runoob

B.Hello Google

C.Hello ('Runoob', 'Google')

D.Hello Runoob

E.错误!函数只能接收一个参数

点击查看答案
第6题
分析并写出下面程序的运行结果

分析并写出下面程序的运行结果

请帮忙给出正确答案和分析,谢谢!

点击查看答案
第7题
请写出如下程序的输出结果:#include class R{public:R(int r1,int r2) {R1=r1;R2=r2;}void p
请写出如下程序的输出结果:#include class R{public:R(int r1,int r2) {R1=r1;R2=r2;}void p

请写出如下程序的输出结果:

#include class R{public:R(int r1,int r2) {R1=r1;R2=r2;}void print();

void print() const;private:int R1,R2;};void R::print(){cout<< R1<< ":"<< R2<< endl;

}void R::print() const{cout<< R1<< ";"<< R2<< endl;}void main(){R a(5,4);a.print();

const R b(20,52);b.print();}

点击查看答案
第8题
阅读以下程序,填写运行结果()。def fun(a): return a+1 def f(b): print(b+1) f(fun(3))

点击查看答案
第9题
阅读右侧程序,写出运行结果()

A.程序运行后,输入:青山绿水运行输出结果是

B.绿水青山

C.水绿山青

D.青山绿水

E.山青水绿

点击查看答案
第10题
阅读以下程序,填写运行结果()。def fun(a): return a+1 def f(b): return b*2 print(fun(3)+f(3))

点击查看答案
第11题
写出程序的输出结果: public class A { public virtual void Fun1(int i) { Console.Write

写出程序的输出结果:

public class A

{

public virtual void Fun1(int i)

{

Console.WriteLine(i);

}

public void Fun2(A a)

{

a.Fun1(1);

Fun1(5);

}

}

public class B : A

{

public override void Fun1(int i)

{

base.Fun1 (i + 1);

}

public static void Main()

{

B b = new B();

A a = new A();

a.Fun2(b);

b.Fun2(a);

}

}

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