摘要: 手写数字识别任务 用于对 0 ~ 9 的十类数字进行分类,即输入手写数字的图片,可识别出这个图片中的数字。 使用 pip 工具安装 matplotlib 和 numpy python -m pip install matplotlib numpy -i https://mirror.baidu.co 阅读全文
posted @ 2023-05-09 23:06 VipSoft 阅读(1255) 评论(0) 推荐(2)
摘要: 安装时间较长,通过 --verbose 参数 可以看在不在继续 Mac 安装 paddlehub 出现 Building wheels for collected packages: opencv-python, ffmpy, jieba, seqeval, future Building whee 阅读全文
posted @ 2023-05-09 23:04 VipSoft 阅读(2627) 评论(0) 推荐(0)
摘要: 原因:np.int 在 NumPy 1.20 中已弃用,在 NumPy 1.24 中已删除 AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin ` 阅读全文
posted @ 2023-05-09 15:26 VipSoft 阅读(5666) 评论(0) 推荐(1)
摘要: a=1 ~ n 的求和 $$ \sum_{a=1}^n a $$ 公式:(首项 + 末项) * 项数/2 如果 a=1、 n = 10 => (1+10)10/2 = 55 Python 代码 a = 1 n = 101 # 常规方法 sum = 0 for i in range(a, n): su 阅读全文
posted @ 2023-05-09 10:22 VipSoft 阅读(328) 评论(0) 推荐(0)