Python3.4.3异步关键字语法

2024-04-23 10:56:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我想终端输出值千言万语

[~] $ python
Python 3.4.3 (default, Jun 22 2016, 16:03:29)
[GCC 4.9.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> async def fun():
  File "<stdin>", line 1
    async def fun():
            ^
SyntaxError: invalid syntax

Tags: or终端defaultasynclicenseonlinuxdef