/images/avatar.png

mrchi

树莓派安装Raspbian系统后的一些设置

在启动前开启SSH For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card. When the Pi boots, it looks for the ‘ssh’ file. If it is found, SSH is enabled, and the file is deleted. The content of the file does not matter: it could contain

在Jupyter中执行asyncio代码

问题 在 Jupyter 中,如果执行 asyncio 的代码,例如 1 2 3 4 5 6 7 8 9 from requests_html import AsyncHTMLSession session = AsyncHTMLSession() async def get_google(): r = await session.get('https://google.com/') return r session.run(get_google) 会报错: 1 RuntimeError: This event loop is already running 解决 具体原因是因为 asyncio 不允许嵌套