摘要: 原文链接:http://www.juzicode.com/archives/2706 错误提示: 用tuple类型的数据作为字典的key不报错,用list类型的数据作为字典的key时,提示TypeError: unhashable type: ‘list’ ... 阅读全文
posted @ 2020-12-19 11:27 桔子code 阅读(335) 评论(0) 推荐(0)
摘要: 原文链接:http://www.juzicode.com/archives/2498 错误提示: 使用matplotlib画子图时提示:ValueError: Single argument to subplot must be a three-digit i... 阅读全文
posted @ 2020-12-18 19:47 桔子code 阅读(1067) 评论(0) 推荐(0)
摘要: 原文链接:http://www.juzicode.com/archives/2672 错误提示: 使用print()函数打印字符串,提示print后面的括号是无效字符:SyntaxError: invalid character in identifier #... 阅读全文
posted @ 2020-12-18 19:45 桔子code 阅读(1004) 评论(0) 推荐(0)
摘要: 原文链接:http://www.juzicode.com/archives/2575 要画桔子,先对着个桔子看几分钟: 看完了桔子该动手了,先画个外形: print('\n-----欢迎来到juzicode.com')print('-----公众号: 桔子c... 阅读全文
posted @ 2020-12-16 07:58 桔子code 阅读(209) 评论(0) 推荐(0)
摘要: 原文链接:http://www.juzicode.com/archives/2493 错误提示: 打开文件路径提示参数无效:OSError: [Errno 22] Invalid argument: ‘D:\juzicode\桔子code\readme.txt... 阅读全文
posted @ 2020-12-12 08:23 桔子code 阅读(397) 评论(0) 推荐(0)
摘要: 原文链接:http://www.juzicode.com/archives/2486 错误提示: 使用matplotlib legend提示:ValueError: Unrecognized location ‘upper’. Valid location... 阅读全文
posted @ 2020-12-09 20:08 桔子code 阅读(240) 评论(0) 推荐(0)
摘要: 原文链接:http://www.juzicode.com/archives/2411 错误提示: 进行加减法运算时提示:TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’: D:\ju... 阅读全文
posted @ 2020-12-08 22:37 桔子code 阅读(4090) 评论(0) 推荐(0)
摘要: 原文链接:http://www.juzicode.com/archives/2421 在matplotlib中默认是不能正常显示中文: import numpy as npimport matplotlib.pyplot as pltimport matp... 阅读全文
posted @ 2020-12-08 22:37 桔子code 阅读(447) 评论(0) 推荐(0)
摘要: 原文链接:http://www.juzicode.com/archives/1466 前两天桔子菌在调试代码的时候发现自己写的一个方法怎么也执行不到,这个自定义的类大概是下面这样子的: class ClassA(object): def __init__... 阅读全文
posted @ 2020-12-07 12:51 桔子code 阅读(51) 评论(0) 推荐(0)
摘要: 原文链接:http://www.juzicode.com/archives/2364 错误提示: 使用变量时提示NameError: name ‘a’ is not defined D:\juzicode>python test-not-define.py微信... 阅读全文
posted @ 2020-12-06 20:29 桔子code 阅读(805) 评论(0) 推荐(0)