随笔分类 -  python

摘要:python excel操作 阅读全文
posted @ 2022-02-11 10:53 forest_128 阅读(2984) 评论(0) 推荐(1)
摘要:import random import numpy as np In [2]: nd=np.arange(10) str=list('astrcdefghij') print("nd:",nd) print("str:",str) Out[2]: nd: [0 1 2 3 4 5 6 7 8 9] 阅读全文
posted @ 2020-12-06 03:17 forest_128 阅读(169) 评论(0) 推荐(0)
摘要:In [1]: import os from pathlib import Path import glob 方法1 In [3]: dirpath="D:\\test\\1" #判断是否是目录 if os.path.isdir(dirpath): img_names=[] # 获取所有文件名 di 阅读全文
posted @ 2020-12-05 23:27 forest_128 阅读(433) 评论(0) 推荐(0)
摘要:tensorflow 识别图像特征 解决:确定一张图是否是鞋子 1 import matplotlib.pyplot as plt 2 import tensorflow as tf 3 #加载数据 4 mnist=tf.keras.datasets.fashion_mnist 5 (trainin 阅读全文
posted @ 2020-10-21 01:01 forest_128 阅读(510) 评论(0) 推荐(0)
摘要:#numpy不以科学计数法输出 np.set_printoptions(suppress=True) #pandas不以科学计数法输出,最大显示无省略号行列【10*10】 pd.set_option('display.max_columns', 10, 'display.max_rows', 10, 阅读全文
posted @ 2020-10-19 23:04 forest_128 阅读(11468) 评论(0) 推荐(1)