一、对于不需读取文件数据的代码
打开命令窗口直接输入:python+空格+代码路径\代码名
二、对于需要读取文件数据的代码
命令窗口输入:python+空格+代码路径\代码名+空格+文件路径\文件名(可以加多个文件)
问题:引用TensorFlow时出现的问题
运行后出现error:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
解决:在代码中加入下面两行:
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'