Discuss / Python / 不知道为什么会这样报错

不知道为什么会这样报错

Topic source

Traceback (most recent call last): File "C:\work\asyncio.py", line 1, in <module> import asyncio File "C:\work\asyncio.py", line 3, in <module> @asyncio.coroutine AttributeError: module 'asyncio' has no attribute 'coroutine' 直接复制的廖老师的代码,不知道为什么会这样,我的python是3.6的所以也不是版本的原因吧。 请指教谢谢!!!!!

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

你的文件名和系统模块重名了


  • 1

Reply