语法错误无效

man*_*ing 1 python

我的代码是:

if any(s in attrs["show"] for s in ("Apple Mac OS","Intel Mac OS")):
Run Code Online (Sandbox Code Playgroud)

错误是:

 if any(s in attrs["show"] for s in ("Apple Mac OS","Intel Mac OS")):
                            ^
 SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)

我可以在一台机器上成功运行相同的脚本,然后我只是将它复制到另一台机器上,它返回此错误,真的不知道为什么

kin*_*all 5

您在计算机上有一个不能运行它的旧版Python.就像,一个非常古老的版本; 我相信这个功能是在Python 2.4中添加的.