print("Hello, World!");
def createList():
list = []
for i in range(5):
list.append(i)
return list
list=createList()
print(list)
。
A.114,124
B.109,116
C.113,124
D.110,116
A.Hello Runoob
B.Hello Google
C.Hello ('Runoob', 'Google')
D.Hello Runoob
E.错误!函数只能接收一个参数
请写出如下程序的输出结果:
#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();}
写出程序的输出结果:
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);
}
}