
python报错
m0_50888396
这个作者很懒,什么都没留下…
展开
-
labelme2voc、labelme2coco在运行时报错assert class_name == “__ignore__“
labelme2voc、labelme2coco在运行时报错assert class_name == "__ignore__"原创 2022-10-18 22:25:04 · 1814 阅读 · 1 评论 -
python.plt.xlable总是不能显示中文和负数解决
明明输入的好好的:plt.xlabel('X轴数值')plt.ylabel('y轴数值')plt.title('显示曲线')但显示出来的图像却。。。改:在代码上面加入这两行plt.rcParams['font.family'] = ['sans-serif']plt.rcParams['font.sans-serif'] = ['SimHei']没有去搜原理,如果有大神能告知就更好了!...原创 2022-03-11 15:01:47 · 4300 阅读 · 1 评论 -
python.input报错TypeError: must be real number, not str
在输入数据时: 输入数字,对公式进行计算。而普通的输入数据:xxx=input("please enter the data xxx: ")报错TypeError: must be real number, not str更改:xxx = float(input("please enter the data xxx: "))原创 2022-02-16 09:25:40 · 5332 阅读 · 0 评论