findGoodsById is not defined
时间: 2023-11-05 08:00:58 浏览: 44
`findGoodsById` is not defined means that there is no function or method named `findGoodsById` in the current program or module. This error usually occurs when you try to call a function that hasn't been defined yet or there is a typo in the function name.
To fix this issue, you need to define the function `findGoodsById` before calling it. Here's an example of how to define and use the `findGoodsById` function:
```python
def findGoodsById(goodsId):
# Implementation goes here
# ...
return goods
# Call the function
goods = findGoodsById(123)
```
Please make sure that you have properly defined the `findGoodsById` function and that its name is spelled correctly. Also, ensure that the function is being called in the correct context.
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)