We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b21b89 commit 3adc53bCopy full SHA for 3adc53b
2 files changed
basic/25_import.py
@@ -0,0 +1,12 @@
1
+import time
2
+print(time.localtime())
3
+
4
+import time as t
5
+print(t.localtime())
6
7
+from time import localtime, time
8
+print(localtime())
9
+print(time())
10
11
+from time import *
12
tensorflow/tensorflow7_variable.py
@@ -6,10 +6,10 @@
new_value = tf.add(state, one)
update = tf.assign(state, new_value)
-init = tf.initialize_all_variables() # must have
+init = tf.initialize_all_variables() # must have
with tf.Session() as sess:
- sess.run(init) # run and activate
13
- for _ in range(3):
14
- sess.run(update)
15
- print(sess.run(state))
+ sess.run(init) # run and activate
+ for _ in range(3):
+ sess.run(update)
+ print(sess.run(state))
0 commit comments