gpt4 book ai didi

python - Sublime Text Anaconda 无效语法

转载 作者:行者123 更新时间:2023-12-01 03:17:15 25 4
gpt4 key购买 nike

我在使用 @ 运算符的第 4 行收到无效语法错误:

from numpy import array
a = array([1, 2, 3, 4])
b = array([5, 6, 7, 8])
c = a @ b

但是代码可以工作。如何修复/忽略此错误设置?

最佳答案

我假设您的 Anaconda 不知道您正在使用 python3.5,显然假设 python2,因此此语法无效。您可以使用set Interpreter命令将其设置为python3.5。您也可以在配置中设置它以保留设置

关于python - Sublime Text Anaconda 无效语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42361682/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com