1安装需求
pip安装 tensorflow,numpy,matplotlib
2创建py文件(我这里是tf-v.py)
代码语言:javascript复制# 导入TensorFlow and tf.keras
import tensorflow as tf
from tensorflow import keras
# Helper libraries
import numpy as np
import matplotlib.pyplot as plt
print(tf.__version__)
3运行
代码语言:javascript复制python tf-v.py