• 2022-06-17
    Keras 提供的 tf.keras.datasets.mnist.load_data() 函数加载 MNIST 数据集后,返回的数据格式为形如______ Numpy 元组。
    A: (x_train, x_test), (y_train, y_test)
    B: [x_train, x_test], [y_train, y_test]
    C: [x_train, y_train], [x_test, y_test]
    D: (x_train, y_train), (x_test, y_test)
  • D

    内容

    • 0

      如下代码定义了一个类Test: class Test { private int y; Test (int x) { y:x; } }现在为Test 类生成一个对象,正确的语句是( )。 A: Test t = new Test( ); B: Test t=new Test(10, 20); C: Test t; D: Test t=new Test(10);

    • 1

      (06-03)在Java中,以下程序编译运行后的输出结果为( )。 public class Test { int x, y; Test(int x, int y) { this.x = x; this.y = y; } public static void main(String[] args) { Test pt1, pt2; pt1 = new Test(3, 3); pt2 = new Test(4, 4); System.out.print(pt1.x + pt2.x); } }

    • 2

      下面程序代码的输出结果是( )。x= 10y=x="test"y A: 10 B: test C: .F. D: 运行出错

    • 3

      using System; class Test { public static void Main() { int x = 5; int y = x++; Console.WriteLine(y); y=++x; Console.WriteLine(y); } }

    • 4

      有如下程序:#includeusing namespace std;Class Testpublic:Test()Test(const Test&t)cout<<1;);Test fun(Test &u)Test t=u;retum t;int main()Test X,y;x=fun(y);retum 0;运行这个程序的输出结果是()。 A: 无输出 B: 1 C: 11 D: 111