Python错题集
文章平均质量分 57
将Python编程过程中遇到的错误进行搜集罗列,并就如何解决给出参考方法。
Py小趴
因为热爱而学习,因为喜欢而分享,因为不服而挑战。
展开
-
Python错题集-10RuntimeError: Failed to process string with tex because latex could not be found
RuntimeError: Failed to process string with tex because latex could not be found原创 2024-03-20 15:44:02 · 826 阅读 · 0 评论 -
Python错题集-9PermissionError:[Errno 13] (权限错误)
PermissionError: [Errno 13] Permission denied: 'data2_38_3.xlsx'原创 2024-03-17 23:26:26 · 598 阅读 · 0 评论 -
Python白练-3生成包含1000个随机字符的字符串,统计每个字符的出现次数
字典元素的访问原创 2024-03-15 13:41:44 · 507 阅读 · 2 评论 -
Python白练-2统计下列5行字符串中字符出现的频数
统计下列5行字符串中字符出现的频数原创 2024-03-14 23:54:38 · 358 阅读 · 1 评论 -
Python白练-1字符串操作示例
Python 提供了丰富的字符串操作功能,包括连接、切片、查找、替换、分割、大小写转换等。原创 2024-03-13 14:30:08 · 524 阅读 · 1 评论 -
Python错题集-8:AttributeError(找不到对应的对象的属性)
AttributeError: 'AxesSubplot' object has no attribute 'arc'原创 2024-03-09 16:10:36 · 1003 阅读 · 0 评论 -
Python错题集-7:DeprecationWarning: Conversion of an array with ndim(被弃用警告)
DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation.原创 2024-03-06 13:51:08 · 3160 阅读 · 0 评论 -
Python错题集-6:UserWarning: Glyph 20010missing from current font. f(字体错误)
UserWarning: Glyph 20010 (\N{CJK UNIFIED IDEOGRAPH-4E2A}) missing from current font.func(*args)原创 2024-03-05 15:44:14 · 1164 阅读 · 0 评论 -
Python错题集-5:SyntaxError:(语法错误)
SyntaxError: unterminated string literal (detected at line 14)原创 2024-03-04 13:40:21 · 437 阅读 · 0 评论 -
Python错题集-4:NameError:(变量名错误)
NameError在 Python 中是一个异常类型,它表示尝试访问一个未被定义或不可访问的变量名。当 Python 解释器在尝试查找一个变量或函数名时,如果在当前的符号表(即名称空间)中找不到这个名字,就会抛出NameError异常。原创 2024-02-29 16:42:27 · 329 阅读 · 0 评论 -
Python错题集-3:IndentationError(缩进错误)
Python中IndentationError(缩进)问题实战解决原创 2024-02-28 15:49:50 · 239 阅读 · 0 评论 -
Python错题集-问题2:invalid escape sequence(无效的转义序列)
解决invalid escape sequence问题。原创 2023-12-25 22:43:38 · 2848 阅读 · 0 评论 -
Python程序运行错误解决-ModuleNotFoundError: No module named ‘matplotlib‘
问题描述:在终端或命令行窗口,使用pip命令成功安装Matplotlib模块后,在pycharm中调用此模块仍出现ModuleNotFoundError: No module named 'matplotlib',这个问题怎么解决?原创 2023-12-14 16:01:01 · 2206 阅读 · 1 评论 -
Python 使用小技巧-设置脚本默认开头信息
设置脚本默认开头信息原创 2023-12-14 00:22:08 · 173 阅读 · 1 评论