以下代码的输出结果为()import tensorflow as tf a = tf.constant(2)b = tf.constant(3)c = tf.add(a, b) print(c) with tf.Session() as sess: print(sess.run(c))
- 首页
- 公共卫生执业医师
-
1.以下代码的输出结果为()import tensorflow as tf a = tf.constant(2)b = tf.constant(3)c = tf.add(a, b) print(c)
-
2.import numpy as np a=np.arange(24) b=a.reshape(4,2,3) print(b.ndim) 以上代码输出结果为?
-
3.关于以下代码的说法正确的是()import tensorflow as tfimport sys print(tf.__version__)print(sys.version)
-
4.写出下面代码的运行结果。def Sum(a, b=3, c=5): print(a,b,c)Sum(a=8, c=2)A、8,2B、8 3 2C、8 2D、8,3,2
-
5.下列代码运行结果是?a = 'a'print a > 'b' or 'c'
-
6.以下程序运行结果为:____ a=4 if a>3: b=a**2 else: b=a**3 print(b)
-
7.运行以下代码,结果正确的是_______。import tensorflow as tfx = [1,3,5]y = tf.one_hot(x,6)print(y)
-
8.写出下面代码的执行结果。
-
9.[程序题,5分] 阅读下面的代码,分析其执行结果。
-
10.下面代码的输出结果是( )a = 'alex'b = acapitalize()print(a,end=',')print(b)