bug--xxoobject has no attribute xxx

Python 创建类的实例后却不能调用写的方法,检查了半天原来是缩进的问题,def函数不应该和class并列
只能说这个英文空格太小了,看不出来。。。。
在这里插入图片描述

相关推荐

  1. bug 记录

    2024-03-10 07:00:04       54 阅读
  2. 普通<span style='color:red;'>BUG</span>

    普通BUG

    2024-03-10 07:00:04      55 阅读
  3. html--<span style='color:red;'>bug</span>

    html--bug

    2024-03-10 07:00:04      42 阅读
  4. Bug积累

    2024-03-10 07:00:04       40 阅读
  5. Bug汇总

    2024-03-10 07:00:04       24 阅读
  6. BUG:required a single bean, but 2 were found:

    2024-03-10 07:00:04       46 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-10 07:00:04       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-10 07:00:04       106 阅读
  3. 在Django里面运行非项目文件

    2024-03-10 07:00:04       87 阅读
  4. Python语言-面向对象

    2024-03-10 07:00:04       96 阅读

热门阅读

  1. 初识 Verilog

    2024-03-10 07:00:04       45 阅读
  2. 区块链web3智能合约Solidity学习资源整理

    2024-03-10 07:00:04       45 阅读
  3. 【MySQL 系列】在 Ubuntu 上安装 MySQL

    2024-03-10 07:00:04       49 阅读
  4. bash 给表格加列名

    2024-03-10 07:00:04       40 阅读
  5. C++ 友元

    2024-03-10 07:00:04       44 阅读