TypeError: create_slide() missing 1 required positional argument: 'self
时间: 2023-10-28 11:06:19 浏览: 110
这个错误是由于在调用create_slide()函数时缺少了一个必需的参数'self'。TypeError: create_slide() missing 1 required positional argument: 'self'意味着在调用该函数时没有传递类的实例作为第一个参数。在Python中,类的方法需要作为类的实例来调用。所以,请确保在调用create_slide()函数时传递类的实例作为第一个参数。例如,如果类的实例名为'slide',则应该使用'slide.create_slide()'来调用该函数。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [已解决TypeError: __init__() missing 1 required positional argument: ‘c2](https://blog.csdn.net/qq_46008620/article/details/130625066)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [TypeError: Unexpected keyword argument passed to optimizer: learning_rate 解决方法](https://download.csdn.net/download/weixin_38702417/14910701)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文