如何解决Python中aiohttp模拟服务器出现的错误问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计310个文字,预计阅读时间需要2分钟。
软件版本及环境:Python 3.9 + PyCharm 2020.2.1 + Windows 10
运行报错:警告信息提示 DeprecationWarning: loop argument is deprecated 和 DeprecationWarning: Application.make_handler(...) is deprecated, use AppRunner
解决方法:
1.检查代码中是否有使用过时的 `loop` 参数。如果是,需要修改为 `loop=None`。
2.更新代码中的 `Application.make_handler` 方法,使用 `AppRunner` 替换。
本文共计310个文字,预计阅读时间需要2分钟。
软件版本及环境:Python 3.9 + PyCharm 2020.2.1 + Windows 10
运行报错:警告信息提示 DeprecationWarning: loop argument is deprecated 和 DeprecationWarning: Application.make_handler(...) is deprecated, use AppRunner
解决方法:
1.检查代码中是否有使用过时的 `loop` 参数。如果是,需要修改为 `loop=None`。
2.更新代码中的 `Application.make_handler` 方法,使用 `AppRunner` 替换。

