以下代码的输出结果为()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.以下程序段的执行结果是( )?程序段:A=1:b=2:c=3:a=b:b=c:c=a:Print a;b;c
-
7.print(max('A', 'B', 'C', 'X', 'Z')),输出为____。
-
8.写出下面代码的运行结果。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
-
9.请写出以下程序段的输出a = 15b = "12"print(a + int(b))print(str(a) + b)c = 1 + float("3.5")print(c)print(3+eval("
-
10.下列代码运行结果是?a = 'a'print a > 'b' or 'c'