Error处理
---
「已注销」
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Paddle tensor holds the wrong type,desires to be int64
报错原因: 输入的数据中某些字段不是int64类型 解决方法如下图所示: def get_batch_data(data, i): ......(省略)...... return feature, label.astype(np.int64)原创 2022-04-25 14:47:37 · 357 阅读 · 0 评论 -
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
python3中的cv2导包在opencv-python包中原创 2022-04-06 21:35:11 · 1208 阅读 · 0 评论 -
Pygame.image.save(rtext,“{}.format(char)) pygame.error:Coldn‘t open
#-*- coding:utf-8 -*- import pygame pygame.init() # 获取3500个汉字 with open("all_5000_chars.txt", "r", encoding="gbk") as f:# 编码格式一般有以下几种:gbk/gb2312/gb18030/utf-8 chars = f.readlines() # 通过pygame将汉字转化为黑白图片 for char in chars: char=char.strip() fon原创 2022-04-06 18:27:09 · 3063 阅读 · 0 评论
分享