以下代码的输出结果为()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.下面代码的输出结果是>>> a = b = c =123>>> print(a,b,c)
-
3.【填空题】执行下面语句后,输出的结果是 : a=3 b=4 c=5 if a b>c or a-b>6 and b>3 then Print b else print c end if
-
4.import numpy as np a=np.arange(24) b=a.reshape(4,2,3) print(b.ndim) 以上代码输出结果为?
-
5.关于以下代码的说法正确的是()import tensorflow as tfimport sys print(tf.__version__)print(sys.version)
-
6.写出下面代码的运行结果。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
-
7.下列代码运行结果是?a = 'a'print a > 'b' or 'c'
-
8.以下程序运行结果为:____ a=4 if a>3: b=a**2 else: b=a**3 print(b)
-
9.运行以下代码,结果正确的是_______。import tensorflow as tfx = [1,3,5]y = tf.one_hot(x,6)print(y)
-
10.写出下面代码的执行结果。