Skip to content

Commit 3adc53b

Browse files
author
Mofan Zhou
committed
create basic25
1 parent 1b21b89 commit 3adc53b

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

basic/25_import.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
print(localtime())

tensorflow/tensorflow7_variable.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
new_value = tf.add(state, one)
77
update = tf.assign(state, new_value)
88

9-
init = tf.initialize_all_variables() # must have
9+
init = tf.initialize_all_variables() # must have
1010

1111
with tf.Session() as sess:
12-
sess.run(init) # run and activate
13-
for _ in range(3):
14-
sess.run(update)
15-
print(sess.run(state))
12+
sess.run(init) # run and activate
13+
for _ in range(3):
14+
sess.run(update)
15+
print(sess.run(state))

0 commit comments

Comments
 (0)