我的代码是:
if any(s in attrs["show"] for s in ("Apple Mac OS","Intel Mac OS")):
错误是:
if any(s in attrs["show"] for s in ("Apple Mac OS","Intel Mac OS")):
^
SyntaxError: invalid syntax
我可以在一台机器上成功运行相同的脚本,然后我将它复制到另一台机器,它返回此错误,真的不知道为什么