can only concatenate str (not "coroutine") to str aiohttp
时间: 2023-11-21 07:54:53 浏览: 273
解决Python 异常TypeError: cannot concatenate 'str' and 'int' objects
在Lua中,如果你没有给变量分配默认值,它的值将为nil。在尝试将nil与字符串连接时,会引发异常。 引发的错误信息可能是"attempt to concatenate field '?' (a nil value)"或"attempt to concatenate a nil value (field '?')"。这是因为在Lua中,不能将nil与其他类型的值进行连接操作。同样,在Python中,当尝试将int类型的值与str类型的值连接时也会产生类似的错误。错误信息可能是"TypeError: cannot concatenate 'str' and 'int' objects"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [lua 使用中遇到的坑总结](https://blog.csdn.net/weixin_30839881/article/details/98346267)[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: 33.333333333333336%"]
- *2* [lua错误attempt to concatenate field ‘?‘ (a nil value)](https://blog.csdn.net/brook0344/article/details/125442348)[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: 33.333333333333336%"]
- *3* [解决Python 异常TypeError: cannot concatenate str and int objects](https://download.csdn.net/download/weixin_38600696/14850260)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文